http://qs321.pair.com?node_id=527157


in reply to Re: Should Devel::Size work on tied arrays?
in thread Should Devel::Size work on tied arrays?

Hrm. Devel::Size should handle closures properly -- I remember adding in code last summer to walk pads attached to code references, and some testing showed that it looked to work, but I may well have missed something in there. I'll go look and see what's going on.

And yeah, Devel::Size does some... interesting things to get the total size of data structures. There's lots of evil knowledge of the size of things. For the most part that knowledge is version-independent, but not all of it. (Arguably there should be a Devel::Size-ish thing bundled as part of a perl distribution because it is so potentially version-dependent, but that's throwing more work on the core internals group, and they've enough to do as it is)

  • Comment on Re^2: Should Devel::Size work on tied arrays?

Replies are listed 'Best First'.
Re^3: Should Devel::Size work on tied arrays?
by martin (Friar) on Feb 02, 2006 at 00:26 UTC
    Devel::Size should handle closures properly

    Uh-oh. As coderefs are mentioned in the bugs section it didn't occur to me to file a bug report. Devel::Size appears to report unreasonably constant sizes of closures, and I get "Attempt to free unreferenced scalar" warnings also. Please /msg me if you need more details.