[rt-devel] [PATCH] RT::Require faster implementation of eval "require ...".

Jesse Vincent jesse at bestpractical.com
Sat Mar 27 19:13:56 EST 2004




On Sat, Mar 27, 2004 at 09:13:50PM +0300, Ruslan U. Zakirov wrote:
> 	Hello.
> Attached patch represent new function RT::Require which implement
> eval "require $module". This implementation check 
> "$module::VERSION"
> before running eval.
> 
> It shows that my code runs ~3 times faster when module allready 
> loaded.

Is this change just because it's "neat" or because you've actually run
into a measurable delay with the current method? To my knowledge, RT
doesn't do any "require"s in a tight loop. From your perf tests, it
looks like the standard method is already pretty fast, relative to
everything else that RT's doing.

	Best,
	Jesse



More information about the Rt-devel mailing list