[REBOL] Re: UTF-8 revisited
From: jan:skibinski:sympatico:ca at: 27-Nov-2002 11:54
Hi Romano,
Romano Paolo Tenca wrote:
> Hi Jan,
>
> perhaps this can help:
>
Thanks, that will certainly help! Although I have not
tested it yet I can clearly see the advantages of your
changes. I already know that 'parse itself shaves quite
a bit of time compared to 'while. And there are other
goodies: precompiled fetch, to char! instead of to-char,
and inlining. I was using to-binary (your to binary!)
before, but I dropped it since it seemed to me slower
than the explicit construction of integers. But I probably
missed the case of 4-byte integers where to binary!
might be in fact faster than the by-hand construction.
I'll report back, after the final revision of the
decoder and the verification whether or not
the latest simplified algorithms properly work for
all cases.
The final step will handle the little endian vs. big
endian issues.
All the best,
Jan