Re: [Haskell-cafe] Bytestrings and [Char]

23 Mar
2010
23 Mar
'10
2:05 p.m.
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
5540
Age (days ago)
5540
Last active (days ago)
0 comments
1 participants
participants (1)
-
Iustin Pop