develooper Front page | perl.perl5.porters | Postings from October 2008

Storable feature idea ( optionally delete %hash when doing $foo=freeze(\%hash))

Thread Next
From:
Jesus Christ Supersaw
Date:
October 25, 2008 08:38
Subject:
Storable feature idea ( optionally delete %hash when doing $foo=freeze(\%hash))
Message ID:
49032082.1090507@googlemail.com
Problem: when you use freeze(\%hash) to save memory, you have both the 
freezed version and the original in memory after doing this (before you 
undef the %hash).

Idea: make an alternative freeze routine which deletes the hash 
subsequently whilst stringifying it.

How that would work with thaw I can't quite picture myself.

I don't know anything about XS yet, so I can't contribute myself, sorry.
Just an idea.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About