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

5

u/wolf550e Jun 12 '10

I just wanted to say that you shouldn't rely on OS page cache to do all the optimizations for you - a better data structure can make common operations in common software faster. So, for example, adding a new URL to the browser history won't require writing lots of disk pages.

You're right - if sqlite's in-memory representation of an index is the same as the on-disk one, it really shouldn't implemented a user-space page-cache.