Date Manip Improvements

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've profiled our input of large database files that are spending
large amounts of
time using Date::Manip
functions such as ParseDateString and UnixDate.
[using the NYTProfile, a very nice tool!!!]

While in some cases, the data is repetitive, so at first glance, I
 memiozation might help

BUT In many cases, the data is different [it might be the seconds
value that
advances, etc], so there's still a big hit...

Looking at the code, it's pretty complex, so converting it to C code
and inlining seems a stretch...

Does anyone have any suggestions?

Ihor Kinal

Re: Date Manip Improvements

On 09/19/11 21:12, wrote:
Quoted text here. Click to load it

Look near the end of the documentation for 'SHOULD I USE DATE::MANIP'.
In short, there are other modules which might be faster.

If the manipulation is always doing the same thing, e.g. converting
201101022359 to 01/02/2011 23:59, then doing it yourself may be
faster than a generalized method that accepts many different formats.

Site Timeline