3 ms·
You can spend literally as much time as you like on memory management. Google has chosen 20%. They have also, by banning exceptions, chosen to spend a very subs
by ncmncm 5y ago
You can spend literally as much time as you like on memory management. Google has chosen 20%. They have also, by banning exceptions, chosen to spend a very substantial part of their time on checking for error status, and on two-phase initialization and cleanup.
I most typically choose 0% post start-up, with 0% fragmentation. For a different problem domain, I might choose differently.
- titzer 5y agoSo you're running programs without dynamic memory allocation? That makes sense for a certain domain, like microcontrollers and embedded systems, but most programs do end up dynamically allocating memory, which leads to non-zeroes for both of those things.
- ncmncm 5y agoMy programs mmap thousands of hugepages at startup, then run for years. Well, not all of them.