in reply to Re^4: private recursive subroutines
in thread private recursive subroutines
Also, while in 5.9.4 and earlier the recursive lookup via @ISA is performed every time an uncached method call was made, with the new mro stuff the recursive @ISA parent hierarchy of a class is linearized into a simple flat list of classes to search with no duplicates, and cached. That "linearized isa" cache is only blown on @ISA changes in the given class or its parents, not method changes. So even when you (locally) invalidate the method caches by redefining a subroutine, these @ISA linearizations stay in place, making that first lookup to refill the cache faster than it was before.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: private recursive subroutines
by demerphq (Chancellor) on May 14, 2007 at 08:36 UTC | |
by ph713 (Pilgrim) on May 14, 2007 at 10:22 UTC |