|We don't bite newbies here... much|
Memory overhead of blessed hashesby LanX (Sage)
|on Feb 09, 2021 at 15:29 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
I've just been in a discussion where several 100k of objects are causing a huge memory consumption.
Some colleagues want to refactor the objects (here blessed hashes) into plain hashes, I'm doubting that this will have a big impact.
From my understanding do hashes need a lot of memory, but the extra magic for blessing them shouldn't count much.
Question: Are there any other memory impacts when using objects apart from those displayed by Devel::Peek ?
PS: FWIW: I suggested to keep the objects and to switch to blessed arrays instead.
DISCLAIMER: Not my project ... hence no code available.