This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mro_package_moved only needs one loop
authorFather Chrysostomos <sprout@cpan.org>
Sat, 13 Nov 2010 02:13:16 +0000 (18:13 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 13 Nov 2010 02:13:16 +0000 (18:13 -0800)
commitbeeda1437785916becc8ab64bf5576025a49b65f
treeaa7c250babe04f2e537f74c55c6e9d88799a0623
parentf7afb5473b6b3ffb63d7449cc0d82951d25a0886
mro_package_moved only needs one loop

We can avoid the double iteration by doing the first iteration’s job
(to clear the linearisations) inside gather_and_rename as the items
are added to the stash. The important thing is that they all be
cleared before *any* calls to mro_isa_changed_in, which will still
be the case.

Maybe ‘gather_and_rename’ is not such a good name any more....
mro.c