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