Next | Making Programs Faster | 109 |
My reasoning was that Tie::File usage will be heavily I/O bound
So anything I could do to reduce real I/O would speed up the module
Having made that decision, I invested a lot of effort in a sophisticated caching algorithm
But I was wrong
The typical cache hit rate for programs using Tie::File is close to 0
The expense of maintaining the cache is wasted
See Bonus Slides for a quantitative analysis of caching
Next | Copyright © 2003 M. J. Dominus |