On Fri, Oct 22, 2010 at 10:30 AM, Ivan Lazar Miljenovic
<[email protected]> 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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to