Relevant blog post:
Viva64 for optimizing data structures

and article:

Optimization of 64-bit programs (see Memory usage decrease)