Yes, in perl-current with my mro.c stuff (and eventually 5.10), when you change the @ISA of a class or change a method in a class, it only invalidates the method cache of that specific class, as well as any classes which inherit from that class (as opposed to the behavior in 5.9.4 and earlier, where changing a method or @ISA anywhere invalidated all method caches globally).
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.