Perl: the Markov chain saw | |
PerlMonks |
Re: (tye)Re: Date comparisons + Benchmarkby baku (Scribe) |
on Feb 09, 2001 at 20:04 UTC ( [id://57398]=note: print w/replies, xml ) | Need Help?? |
A lot of the inefficiency in Date::Manip (in re-parsing) could be eliminated by caching the results in seconds; e.g. using Date_SecsSince1970GMT to create a hash mapping message ID's to dates in seconds. This lets Date::Manip do the "magic" of normalizing various date formats and TZ's into an "universal" format, but the actual sort & search would now be against a list of (large) integers.
In Section
Seekers of Perl Wisdom
|
|