Ivan Miljenovic wrote:
Johan Tibell wrote:
A sequence of bytes is not the same thing as a sequence of Unicode
code points. If you want to replace String by something more efficient
have a look at Data.Text.
Though Data.Text still has the disadvantage of not being as nice to
deal with as
Iustin Pop iu...@k1024.org writes:
On Tue, Mar 23, 2010 at 03:31:33PM -0400, Nick Bowler wrote:
So that's a 30% reduction in throughput. I'd say that's a lot worse
than a few percentage points, but certainly not orders of magnitude.
Because you're possibly benchmarking the disk also.
If you read the source code, length do not read the data, that's why
it is so fast. It cannot be done for UTF-8 strings.
I think at this point most the amazement is directed at Data.Text
being slower than good old [Char] (at least for this operation - we
should probably expand our view to more