[erlang-questions] Re: data sharing is outside the semantics of Erlang, but it sure is useful

Witold Baryluk baryluk@REDACTED
Tue Sep 15 21:53:38 CEST 2009


Dnia 2009-09-15, wto o godzinie 21:40 +0200, Witold Baryluk pisze:

> Unfortunately no.
> 
> First good step will be to have version of term_to_binary which
> preserves sharing of (already shared) subterms (term_to_binary have
> second argument for options, like minorversion or gzip compression), and
> binary_to_term which understand how to unpack them preserving sharing
> (also across
> multiple process in the same node, or compact storage in file/db).
> 
> 

btw. term_to_binary(Y9, [{compressed, 9}]) have size of about 15KB,
and {compressed, 6} (default one) is about 25KB !

(but anyway after binary_to_term heap_size explodes to 2MB).

-- 
Witold Baryluk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: To jest cz??? wiadomo?ci podpisana cyfrowo
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090915/f0f6606a/attachment.bin>


More information about the erlang-questions mailing list