[Haskell-cafe] Re: String vs ByteString

Colin Paul Adams colin at colina.demon.co.uk
Tue Aug 17 06:23:30 EDT 2010


>>>>> "Ketil" == Ketil Malde <ketil at malde.org> writes:

    Ketil> Johan Tibell <johan.tibell at gmail.com> writes:
    >> It's not clear to me that using UTF-16 internally does make
    >> Data.Text noticeably slower.


    Ketil> I think that *IF* we are aiming for a single, grand, unified
    Ketil> text library to Rule Them All, it needs to use UTF-8.
    Ketil> Alternatively, we can have different libraries with different
    Ketil> representations for different purposes, where you'll get
    Ketil> another few percent of juice by switching to the most
    Ketil> appropriate.

Why not instead allow the programmer to decide at the function level
which internal encoding to use?
-- 
Colin Adams
Preston Lancashire
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


More information about the Haskell-Cafe mailing list