<div class="gmail_quote">2010/3/23 Iustin Pop <span dir="ltr">&lt;<a href="mailto:iusty@k1024.org">iusty@k1024.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">I agree with the principle of correctness, but let&#39;s be honest - it&#39;s</div>
(many) orders of magnitude between ByteString and String and Text, not<br>
just a few percentage points…<br></blockquote><div><br></div><div>Well, your benchmarks are highly suspect. See below.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Data.ByteString.Lazy.UTF8 (system readFile + fromString + length) - 11<br>
seconds, correct length.<br></blockquote><div><br></div><div>You should be using bytestring I/O for this.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Data.Text.Lazy (system readFile + pack + length) - 26s, correct length.<br></blockquote><div><br></div><div>You should be using text I/O for this.</div></div>