in reply to Re^4: perl5.10 Devel::Size behaviour changed? (bug report)
in thread perl5.10 Devel::Size behaviour changed?
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 |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: perl5.10 Devel::Size behaviour changed? (reason for magic)
by BrowserUk (Patriarch) on Sep 04, 2009 at 21:30 UTC | |
by ikegami (Patriarch) on Oct 28, 2009 at 18:03 UTC | |
by BrowserUk (Patriarch) on Oct 28, 2009 at 19:29 UTC | |
by ikegami (Patriarch) on Oct 28, 2009 at 19:37 UTC |