[Dbix-class] Re: Class::C3::XS dev release

Brandon Black blblack at gmail.com
Wed Apr 18 15:21:43 GMT 2007


On 4/18/07, Adam Sjøgren <adsj at novozymes.com> 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


More information about the Dbix-class mailing list