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
- Re: [CVS ci] hash compare Leopold Toetsch
- Re: [CVS ci] hash compare Steve Fink
- Re: [CVS ci] hash compare Dan Sugalski
- Re: [CVS ci] hash compare Leopold Toetsch
- Re: [CVS ci] hash compare Dan Sugalski
- Re: [CVS ci] hash compare Nicholas Clark
- Re: [CVS ci] hash compare Mark A. Biggar
- Re: [CVS ci] hash compare Mark A. Biggar
- Re: [CVS ci] hash compare Nicholas Clark
- Re: [CVS ci] hash compare Jeff Clites
- Re: [CVS ci] hash compare Thies C. Arntzen