in reply to Re^3: Memory overhead of blessed hashes
in thread Memory overhead of blessed hashes
but I am quite certain (from the last time I read the documentation) that that cache is associated with the package STASH, rather than each object, since it logically applies to the class (package) and is shared between all objects of that class.
That is the case.
$ perl -M5.010 -e' package Foo { sub f { } } package Bar { our @ISA = "Foo"; } say for keys %{ $::{"Bar::"} }; say "---"; Bar->f(); say for keys %{ $::{"Bar::"} }; ' ISA --- ISA f
Seeking work! You can reach me at ikegami@adaelis.com
|
|---|