The reason a change was made:
On Fri, Sep 04, 2009 at 02:46:26PM -0400, Eric Brine wrote:
> Since 5.10.0, it does. > Is that intentional?
It's storing the value for $#a in the magic. Most arrays don't use $#a, which means that before 5.10 nearly every array consumes 1 pointers-worth of memory just to store NULL. I did it in 2005: http://perl5.git.perl.org/perl.git/commitdiff/a3874608cd3b |
In reply to Re^5: perl5.10 Devel::Size behaviour changed? (reason for magic)
by ikegami
in thread perl5.10 Devel::Size behaviour changed?
by sang1986
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |