On Fri, 6 Jun 2003, Dave Rolsky wrote: > You still have it turning those array refs back to hash refs. Might as > well just go for it and use arrays internally. It's faster and uses less > memory.
Ok, the speed boost seems to be very small, if it exists at all, but the memory savings are huge. If I load all the time zones and have them generate changes 50 years into the future (remember, 30 years are shipped pre-generated), then the Perl process uses uses about 36.5MB on my machine with DT::TZ 0.17. With the new arrayref based version, it uses about 23.75MB, which is a pretty substantial savings. Obviously, no sane application is likely to load _all_ the time zones, but a 33% or so savings is still nice. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
