Memory management

When talking about memory management, any code programmer will remember how native languages opened their doors to any kind of issues and bottlenecks. This can also mean that the expert C++ programmer could have access to some customization to produce better memory management than CLR does. However, this relates only to very few people in very few cases.

Theoretically speaking, when a programmer needs to use some memory to store any value in an operation, they need to:

  • Define a variable of the chosen type
  • Allocate enough free memory to contain the variable:
    • Reserve some bytes in the operating system's memory stack to contain the variable
  • Use the variable:
    • Instantiate the variable with the needed value
    • Do whatever is needed with such ...

Get Learning .NET High-performance Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.