On Sat, 13 May 2006, Rick Measham wrote:
Lenny Rachitsky wrote:
I'm trying to improve the performance of some code, and I've found that a
lot of the inefficiencies I have are caused by a large number of DateTime
object creations.
Do you use every one of these DateTime objects, or are you just creating them
all and only using some? If you're only using some of them, have a look at
DateTime::LazyInit (which reminds me, I need to release the new version huh?)
That won't help if he's creating the objects from epochs, however, since
the only way to get the needed info from an epoch is to do all the math
and work that goes into creating a real DateTime.pm object.
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/