Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by Elian (Parson)
on Feb 01, 2006 at 20:30 UTC ( #527157=note: print w/ replies, xml ) Need Help??


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?
Re^3: Should Devel::Size work on tied arrays?
by martin (Pilgrim) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://527157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2014-09-22 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls