Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
System Programming Essentials with Go

You're reading from   System Programming Essentials with Go System calls, networking, efficiency, and security practices with practical projects in Golang

Arrow left icon
Product type Paperback
Published in Jun 2024
Publisher Packt
ISBN-13 9781837634132
Length 408 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alex Rios Alex Rios
Author Profile Icon Alex Rios
Alex Rios
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Part 1: Introduction
2. Chapter 1: Why Go? FREE CHAPTER 3. Chapter 2: Refreshing Concurrency and Parallelism 4. Part 2: Interaction with the OS
5. Chapter 3: Understanding System Calls 6. Chapter 4: File and Directory Operations 7. Chapter 5: Working with System Events 8. Chapter 6: Understanding Pipes in Inter-Process Communication 9. Chapter 7: Unix Sockets 10. Part 3: Performance
11. Chapter 8: Memory Management 12. Chapter 9: Analyzing Performance 13. Part 4: Connected Apps
14. Chapter 10: Networking 15. Chapter 11: Telemetry 16. Chapter 12: Distributing Your Apps 17. Part 5: Going Beyond
18. Chapter 13: Capstone Project – Distributed Cache 19. Chapter 14: Effective Coding Practices 20. Chapter 15: Stay Sharp with System Programming 21. Index 22. Other Books You May Enjoy Appendix : Hardware Automation

Reusing resources

Reusing resources is crucial in software development because it significantly enhances the efficiency and performance of applications. By reusing resources, we can minimize the overhead associated with resource allocation and deallocation, reduce memory fragmentation, and decrease the latency of resource-intensive operations. This approach leads to more predictable and stable application behavior, particularly under high load. In Go, the sync.Pool package exemplifies this principle by providing a pool of reusable objects that can be dynamically allocated and freed.

Alright, strap in kiddos – it’s time to take a wild ride through the exhilarating world of Go’s sync.Pool. You see all those folks bragging about it like it’s the cure for buggy code? Well, they’re not entirely wrong; it’s just not the magic bullet they think it is.

Imagine sync.Pool as your friendly neighborhood hoarder. You know, the one with a garage so...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime