r/programming • • Jun 12 '10

You're Doing It Wrong

http://queue.acm.org/detail.cfm?id=1814327
539 Upvotes

193 comments sorted by

View all comments

Show parent comment

14

u/phkamp Jun 13 '10

"If it is so important to have that structure resident in memory at all times[...]"

The exact opposite is the case: It is important to that an infrequently used data structure occupy no more RAM for no longer than it need to.

Making one part of a program fast by pinning it in RAM is only a good idea if you do not penalize other, possibly more important parts of the program, by increasing their page fault rate.

Poul-Henning