[Haskell-cafe] Bytestrings and [Char]
Iustin Pop
iusty at k1024.org
Tue Mar 23 14:05:02 EDT 2010
On Tue, Mar 23, 2010 at 05:53:00PM +0000, Vincent Hanquez wrote:
> On 23/03/10 17:11, Iustin Pop wrote:
> >Data.ByteString.Lazy (bytestring readFile + length) -< 10 miliseconds,
> >incorrect length (as expected).
> >
> >Data.ByteString.Lazy.UTF8 (system readFile + fromString + length) - 11
> >seconds, correct length.
>
> Why would you use system readFile and not bytestring readFile in the
> second case ?
>
> using the later i got a ~48x slowdown, not a >1100x slowdown, and
> the length is correct too.
Hmm… because I didn't think of that :)
iustin
More information about the Haskell-Cafe
mailing list