[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

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



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.


Follow-Ups from:
Nicholas Clark <nick@ccl4.org>
Aristotle Pagaltzis <pagaltzis@gmx.de>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]