[svn:parrot] r38477 - trunk/src/pmc

Nicholas Clark nwc10 at colon.colondot.net
Thu Aug 20 20:16:55 UTC 2009


On Tue, May 05, 2009 at 03:15:09AM +0000, chromatic at svn.parrot.org wrote:
> Author: chromatic
> Date: Tue May  5 03:15:02 2009
> New Revision: 38477
> URL: https://trac.parrot.org/parrot/changeset/38477
> 
> Log:
> [PMC] Revised MRO generation so that the (relatively expensive C3) MRO
> resolution only occurs when absolutely necessary -- that is, when it differs
> substantially from any parent's MRO.  A class with no parents needs no MRO
> calculation.  A class with one parent can borrow its parent's MRO calculation.

Nice idea. I applied your insight to Perl 5, and got a 40% speed up for my
single inheritance C3 benchmark.

http://perl5.git.perl.org/perl.git/commit/b0413f463ee989f4bfc29e4a

Nicholas Clark


More information about the parrot-dev mailing list