On 7/5/05 7:04 AM, Eric Cholet wrote:
> A while ago we did some profiling of an app that uses DateTime
> extensively and found out that most of the time is spent in
> Params::Validate. I understand this is somewhat of a religious issue,
> but in this case it's a net loss for us: the params have been
> validated zillions of times, and we lose performance in production. I
> would love a DateTime sans param validation.

Have you tried turning off the validation by setting the PERL_NO_VALIDATION
environment variable?

I agree with Dave that moving big/numerous data structures from Perl to C
will have the most bang for the buck:

On 7/4/05 1:47 PM, Dave Rolsky wrote:
> Implementing time zones in XS as native C data structures would almost
> certainly be a huge win.

Beyond that, the biggest culprits will probably be what they always are in
non-compute-intensive Perl: function/method call overhead and memory
management overhead.  Reduce the number of subs that are called and reduce
the size and number of allocations/deallocations and then you might start to
get closer to the point where actual "calculations" start to become visible
in the profile.

-John


Reply via email to