Memory management is paramount to system performance. Being able to utilize a computer's memory footprint to the fullest allows you to keep highly functioning programs in memory so that you don't often have to take the large performance hit of swapping to disk. Being able to manage memory effectively is a core tenet of writing performant Go code. In this chapter, we will learn about the following topics:
- Computer memory
- How memory is allocated
- How Go utilizes memory effectively
- How objects are allocated in memory
- Strategies for computing devices with limited memory
Understanding how memory is utilized can help you learn to utilize memory effectively in your programs. Memory is one of the fastest places in the computer to store and manipulate data, so being able to manage it performantly will have a lasting impact on your code quality.
...