On Fri, 23 Jan 2009, arie.ha...@gmail.com wrote:
Why DateTime module is loaded so slow?
This simple script that just imports DateTime is executed for 1 second
approximately:
use DateTime;
Can I make it faster?
Yes, you need a faster computer!
auta...@houseabsolute:~/projects/R2$ time perl -MDateTime -e1
real 0m0.109s
user 0m0.096s
sys 0m0.016s
That's my desktop, which is a Core2 Duo of some sort.
Note that once you do this once it gets much quicker because the OS keeps
the data in memory until it gets paged out by something else. If you keep
using it, it won't get paged out. The results above are _not_ from the
first load.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/