[Haskell-cafe] [ANNOUNCE] text 0.10.0.0 - fast Unicode text handling

Johan Tibell johan.tibell at gmail.com
Fri Oct 22 04:40:15 EDT 2010


On Fri, Oct 22, 2010 at 10:30 AM, Ivan Lazar Miljenovic
<ivan.miljenovic at gmail.com> wrote:
> For example, I assume that it's better to try and use Text throughout
> rather than continually packing String values (in my case, I'm looking
> at using Text for I/O in graphviz; should I then start using Text
> rather than String for all the parameters?).

Yes. Just like with ByteString, frequent packs or unpacks kills
performance. The only thing I pack is compile time constants (and, at
least for ByteStrings, that's cheap).

Johan


More information about the Haskell-Cafe mailing list