develooper Front page | perl.perl5.porters | Postings from December 2008

Re: Even faster Unicode character counting

Thread Previous | Thread Next
David Nicol
December 30, 2008 10:39
Re: Even faster Unicode character counting
Message ID:
On Wed, Dec 24, 2008 at 1:57 PM, karl williamson
<> wrote:
> The pre-existing function works on UTF-EBCDIC.  It appears to me that this
> patch does not, which is fine as long as it's #ifdef'd.

Here's an ifdeffed version that attempts to use vectorization to skip
runs of invariants quickly while still using the information from the
start bytes to skip ahead, for the EBCDIC channel.  And I corrected
the off-by-one in the comment.  This compiles, but I have neither
tested nor benchmarked.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About