This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Speed-up character range regexes by up to 2x
- From: Ulrich Drepper <drepper at redhat dot com>
- To: bonzini at gnu dot org
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 13 Jan 2004 18:38:42 -0800
- Subject: Re: [PATCH] Speed-up character range regexes by up to 2x
- Organization: Red Hat, Inc.
- References: <200401120811.i0C8BNOP010105@skeeve.com> <40026DC9.2010804@polimi.it>
-----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-----