String representation in erlang
Tue Sep 13 16:16:16 CEST 2005
Thinus Pollard wrote:
> Hi there
> According to the Erlang efficiency guide a string is internally represented as
> a list of integers, thus consuming 2 words (8 bytes on a 32bit platform) of
> memory *per* character.
> The attached code is an attempt at reducing the memory footprint of strings in
> erlang (passing between functions etc etc).
Me thinks you'd be better off using binaries for strings.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 301 bytes
Desc: not available
More information about the erlang-questions