Re: [PATCH] libstdc++: Call regex_traits::transform_primary() only when necessary

2024-12-18 Thread Jonathan Wakely
On Sat, 16 Nov 2024 at 11:20, Luca Bacci wrote: > > This is both a performance optimization and a partial fix for > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723. > > This commit fixes the issue for bracket expressions that do not > depend on the locale's collation facet. Examples: > > * Cha

[PATCH] libstdc++: Call regex_traits::transform_primary() only when necessary

2024-11-16 Thread Luca Bacci
This is both a performance optimization and a partial fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723. This commit fixes the issue for bracket expressions that do not depend on the locale's collation facet. Examples: * Character ranges ([a-z]) when std::regex::collate is not set * Ch