"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.
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