20
Memory
Without memory, there is no data. Most applications, whether they are a server, blockchain, artificial intelligence, game, or something else, require data. Consequently, understanding the intricacies of memory is essential.
With memory, you have a variety of options. The various categories of memory all have unique characteristics and benefits, and sometimes limitations. The correct choice of memory is often dependent on several factors, including data size, ownership, lifetime, mutability, and persistence. These factors, taken together, will help you make an informed decision. Helping you make this decision is the goal of this chapter.
The three main areas of memory are stack, static, and heap memory. You can place data in any of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access