[erlang-questions] Erlang string datatype [cookbook entry #1 - unicode/UTF-8 strings]
Tue Oct 25 09:57:12 CEST 2011
Le 25 oct. 2011 à 06:57, Richard O'Keefe a écrit :
>> 6) Ideally, reference count immutable string data so that substring extraction is cheap.
> Java has cheap substring extraction without reference counting.
> However, be aware that doing this can lead to *huge* space leaks with very
> large source strings being retained for the sake of comparatively small
> substrings; there is a *reason* why Java's immutable String class comes with a
> copy() method!
Don't we have the same problem with sub-binaries of large binaries?
(Sorry for the dupe mail Richard, forgot to include the list)
Anthony Ramine / @nokusu
Dev:Extend — http://dev-extend.eu/
So as I pray, “Unlimited Erlang Works”
More information about the erlang-questions