[Haskell-cafe] Fwd: Abandoning String = [Char]?
Bryan O'Sullivan
bos at serpentine.com
Mon May 25 04:22:51 UTC 2015
On Fri, May 22, 2015 at 9:30 PM, David Feuer <david.feuer at gmail.com> wrote:
> It would probably work
> fine (great, even) when matching, but code that assumes String=[Char]
> would be completely killed on the construction side, because building
> Text by consing, or repeatedly prepending small chunks, is
> ridiculously inefficient.
>
Actually, pattern-matching against Text using synonyms doesn't do so well
performance-wise either. The unpack-on-the-left function is uncons, which
has to do work and allocate memory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150524/54493b57/attachment.html>
More information about the Haskell-Cafe
mailing list