This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Speed-up character range regexes by up to 2x


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]