develooper Front page | perl.datetime | Postings from January 2006

Re: XS & Leap second questions

Thread Previous | Thread Next
From:
Chase Venters
Date:
January 19, 2006 10:54
Subject:
Re: XS & Leap second questions
Message ID:
200601191224.19139.chase.venters@clientec.com
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,
Chase

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About