I've committed a change that speeds up hash_compare considerably[1], when comparing hashes with mixed e.g. ascii and utf8 encodings.

To improve this (and some other operations like this) further, it would be nice, if we could combine encoding->decode and encoding->skip_forward to another function:

INTVAL code = s->encoding->decode_skip_forward_1( &sptr );

Decode already does all the necessary things in e.g. utf8.c.

leo

[1] examples/benchmarks/hash-utf8.pasm 10 s => 1 s

Reply via email to