On 4/18/07, Adam Sjøgren <[EMAIL PROTECTED]> wrote:
On Sun, 15 Apr 2007 23:43:48 -0500, Brandon wrote:
> I hope that its nearly as fast as the bleadperl patch at runtime
> (although the load-time hit of Class::C3::initialize() will still be a
> little slow). You don't use it directly, Class::C3 uses it
> automatically if its available on the system.
It cut 2 seconds off the startup time of the Catalyst app I'm working
on (around a hundred "DBIC"-classes) - from ~22s to ~20s.
(On Ubuntu 6.10 edgy amd64).
> Install those in a normal perl 5.8.x environment and see how it goes :)
I haven't observed any adverse effects.
I haven't benchmarked Class::C3::XS myself yet, but I suspect most of
the gain will be in speeding up next::method, which will affect
runtime more than it does loadtime. All of the usual initialize() hit
is still happening, just with a slightly faster version of
calculateMRO.
-- Brandon
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/