Le 5 juil. 05 à 15:15, John Siracusa a écrit :

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?

John, thanks for the pointer. I see this is documented in Params::Validate.
I'd never thought of looking in Params::Validate docs to find out how to
disable DateTime's use of it. It might be useful to include a pointer
to this "feature" in DateTime's docs.

--
Eric Cholet


Reply via email to