Only call mro_package_moved on new substashes
authorFather Chrysostomos <sprout@cpan.org>
Tue, 23 Nov 2010 00:55:19 +0000 (16:55 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 23 Nov 2010 00:55:19 +0000 (16:55 -0800)
commit99ee976292c47b41b12e66dc2a0fea4a98c9ab9f
treedaef6d1434445f39970670743bbe75db79e9c12c
parent605aedcce76632b4ab6d032b928335097c11784a
Only call mro_package_moved on new substashes

Commit 298d65111 added this mro_package_moved call.

It does not need to happen if the substash already exists, as it will
already have had effective names assigned to it.

It also may not be a good idea to set it in such cases, as it may make
a recursive call to mro_get_linear_isa. I know this is utter paranoia,
but someone may write a mro plugin that is not reëntrant. (The speed
gain is worth it, though.)
gv.c