[PATCH] Speed-up character range regexes by up to 2x
Ulrich Drepper
drepper@redhat.com
Wed Jan 14 02:41:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paolo Bonzini wrote:
> * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
> Drop code to support this, it is never true.
> (build_range_exp) [!_LIBC]: Do not create a range
> in MBCSET for a single-byte character set.
> (build_range_exp) [_LIBC]: Do not create a range
> in MBCSET for a single-byte character set without
> collation elements.
> (init_dfa): Do not conditionalize on _LIBC, it
> just makes the code less clear.
> (parse_bracket_exp): Use NON_MATCH variable in
> addition to "mbcset->non_match", not as an
> alternative.
> (build_charclass_op): rename NOT parameter to
> NON_MATCH, use it instead of declaring a variable.
> (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
> if the character set is single-byte.
I've applied the patch.
- --
⧠Ulrich Drepper ⧠Red Hat, Inc. ⧠444 Castro St ⧠Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFABKuy2ijCOnn/RHQRAn+9AKCKIgHzZ3kHh/w+qPqgOptOWqTh+QCggG1J
7OGkJRKzJE89qbiA20oReM8=
=RcDi
-----END PGP SIGNATURE-----
More information about the Libc-alpha
mailing list