by nutjob123 · 12y ago · 0 comments
Instead, he brought up a source file and pointed to this line:
static char buffer[1024 * 1024 * 2]; "See this?" he said. And then deleted it with a single keystroke. Done!
He probably saw the horror in my eyes, so he explained to me that he had put aside those two megabytes of memory early in the development cycle. He knew from experience that it was always impossible to cut content down to memory budgets, and that many projects had come close to failing because of it. So now, as a regular practice, he always put aside a nice block of memory to free up when it's really needed.`
It's been done this way, and it'll be done in the future.