On Thursday 19 January 2006 07:08, Flavio S. Glock wrote: > 2006/1/19, Chase Venters <chase.venters@clientec.com>: > > Also, it's been clear to me that using DateTime heavily is a good > > way to quickly kill performance. Pages that took 20ms to render jump to > > 500ms when I try to do something "simple" like apply a recurrence set to > > a month. > > This is the command sequence I use in order to profile recurrences: > > cd ~/cvs/modules/DateTime-Event-ICal > perl -d:DProf -Ilib t/04rfc2445.t > dprofpp > > I think that inlining the parameter validation (the calls to > Params::Validate::_validate) in a few places in DateTime.pm should > help performance a bit. Yes - Indeed. I've noticed this as well. By localizing Params::Validate::NO_VALIDATION to true, I save 100ms on the aforementioned operation (which still takes ~400ms without it, unfortunately). > - Flavio S. Glock Cheers, ChaseThread Previous | Thread Next