String != [Char]

Isaac Dupree ml at isaac.cedarswampstudios.org
Sat Mar 24 23:45:44 CET 2012


On 03/24/2012 02:50 PM, Johan Tibell wrote:
> [...]
> Furthermore, the memory overhead of Text is smaller, which means that
> applications that hold on to many string value will use less heap and
> thus experience smaller "freezes" due major GC collections, which are
> linear in the heap size.

How is Text for small strings currently (e.g. one English word, if not 
one character)?  Can we reasonably recommend it for that?
This recent question suggests it's still not great:
http://stackoverflow.com/questions/9398572/memory-efficient-strings-in-haskell



More information about the Haskell-prime mailing list