Here are a few refactorings of the $RemoveSubs in namespace::clean.
Mini $RemoveSubs refactoring: less loops, less concat
Small refactoring in $RemoveSubs in the cleanup of the GLOB entry:
- grep for undefined symbols just once
- less string concatenation
Mini $RemoveSubs refacting: call P::Stash methods out of loop
In $RemoveSubs, call Package::Stash methods which return static
information out of the main loop.
Did not include this patch, a much better version here:
Superb, included for next release