[Haskell-cafe] Efficient string construction

Bryan O'Sullivan bos at serpentine.com
Thu Jun 3 18:41:58 EDT 2010


On Thu, Jun 3, 2010 at 9:16 AM, Daniel Fischer <daniel.is.fischer at web.de>wrote:

> String can be quite memory efficient. As a stupid example,
>
> length (replicate 10000000 'a')
>
> will need less memory than the equivalents using ByteString or Text.
>

Actually, this will be fused with Data.Text, and should execute more quickly
and in less space than String.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100603/081de109/attachment.html


More information about the Haskell-Cafe mailing list