[Jifty-commit] r6598 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Tue Mar 17 10:56:37 EDT 2009
Author: alexmv
Date: Tue Mar 17 10:56:36 2009
New Revision: 6598
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Util.pm
Log:
r43237 at kohr-ah: chmrr | 2009-03-17 09:57:49 -0400
Regex is faster than split and join
Modified: jifty/trunk/lib/Jifty/Util.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Util.pm (original)
+++ jifty/trunk/lib/Jifty/Util.pm Tue Mar 17 10:56:36 2009
@@ -318,11 +318,10 @@
=cut
-
sub already_required {
my ($self, $class) = @_;
- my $path = join('/', split(/::/,$class)).".pm";
- return ( $INC{$path} ? 1 : 0);
+ $class =~ s{::}{/}g;
+ return ( $INC{"$class.pm"} ? 1 : 0);
}
=head2 generate_uuid
More information about the Jifty-commit
mailing list