Jump to content

View more

The Bag of Holding

4: Adsense

Drink Your Ovaltine, Kiddies

There is a special trick to optimizing code, one that I usually drag out as a weapon of last resort when all algorithmic stuff is taken care of and it's time to give up or start trying to micro-optimize.

The secret, of course, is to eliminate dynamic memory allocations . This isn't a huge revelation to most programmers, especially not games programmers,...