[Jifty-commit] r3354 - jifty/trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jun 4 23:05:51 EDT 2007
Author: clkao
Date: Mon Jun 4 23:05:50 2007
New Revision: 3354
Modified:
jifty/trunk/lib/Jifty/DateTime.pm
Log:
Kill 5% of startup time by not validating during DateTime::Locale.
Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm (original)
+++ jifty/trunk/lib/Jifty/DateTime.pm Mon Jun 4 23:05:50 2007
@@ -16,6 +16,13 @@
=cut
+BEGIN {
+ require Params::Validate;
+ no warnings 'redefine';
+ local *Params::Validate::validate = sub { pop @_, return @_ };
+ require DateTime::Locale;
+}
+
use base qw(Jifty::Object DateTime);
More information about the Jifty-commit
mailing list