[Catalyst-dev] perl 5.10.0 and Class::Accessor::Grouped

Matt S Trout dbix-class at trout.me.uk
Sun Dec 16 19:25:34 GMT 2007


On Sat, Dec 08, 2007 at 09:29:15PM +0300, Oleg Pronin wrote:
> Hello!
> 
> Class::Accessor::Grouped (inherited accessors) is known perfomance penalty
> (especially when called at top-level class and the value is not defined
> yet).
> Unfortunately, under perl 5.10.0 RC2 it works much slower then under perl
> 5.8.8 (about 20-30%).

It -should- be faster, not slower - it uses (AFAIK) MRO::Compat to handle the
search order.

Are you using it with a DFS or C3 mro? Have you checked the MRO::Compat speeds?

A little basic investigation (and posting your benchmark code) would go a long
way here.

Plus Catalyst doesn't use C::A::G - maybe you wanted the DBIC list?

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst-dev mailing list