http://www.perlmonks.org?node_id=153539


in reply to Extreme Example of TMTOWTDI

When using external files, think about your operating system's caching. For example:

2;0 juerd@ouranos:/usr/share/dict$ du -ch | grep total 52M total 2;0 juerd@ouranos:/usr/share/dict$ time cat * > /dev/null real 0m4.382s user 0m0.000s sys 0m0.260s 2;0 juerd@ouranos:/usr/share/dict$ time cat * > /dev/null real 0m0.255s user 0m0.010s sys 0m0.230s
So always try your first solution AGAIN when you tried your second.

U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk