Next | Lightweight Databases | 65 |
Donald E. Knuth, a famous wizard, is fond of saying:
Premature optimization is the root of all evil.
The cache is a good example of this
Many common uses of Tie::File have a very low (or zero) cache hit rate
for (@FILE) { s/.../.../ }
unshift @FILE, items...;
As a result, the cache just slows things down
The next release of Tie::File will leave the cache disabled by default
It will enable the cache only if it believes this will help performance
Next | Copyright © 2003 M. J. Dominus |