Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Memory overhead of blessed hashes

by bliako (Monsignor)
on Feb 09, 2021 at 16:47 UTC ( [id://11128135]=note: print w/replies, xml ) Need Help??


in reply to Memory overhead of blessed hashes

Perl object memory overhead can be useful for benchmarking this in more depth.

Probably not your case but if these objects/hashes are constantly created, used and deleted, then forgotten references to them can stop the garbage collector from cleaning them up. Typical memory leak scenario.

Replies are listed 'Best First'.
Re^2: Memory overhead of blessed hashes
by LanX (Saint) on Feb 09, 2021 at 17:31 UTC
    I agree that a memory leak is the most likely cause.

    It's not my code and I don't wanna get deeper involved as long as the stakeholders keep insisting on their voodoo technologies°

    But while consulting I got into an argument with another very well respected member of the Perl community talking about "the non trivial overhead of bless magic" and I wanted to make sure I'm not missing any inner optimizations.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    °) aka say qw/agile try-and-error cargo-cult experience pragmatic/[ rand 5 ] for 1..3

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found