The book of inspiration

August 22, 2009

Put some weight on it

Filed under: programming — Tags: — zproxy @ 6:00 am

We all know the concept of placeholders. I had never thought of using  memory placeholders as described by Dirty Coding Tricks  at Gamasutra.

static char buffer[1024*1024*2];

“See this?” he said. And then deleted it with a single keystroke. Done!

Come to think of it, it is really nice to know that after the features are implemented and optimized you can still get an extra performance boost by cutting the memory placeholder you had introduced to the code base from early on.


See also:


Blog at