Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 19, 2011, 9:12 pm
rate this thread
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
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?
Re: Date Manip Improvements
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.