Open func25 opened 2 months ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Change https://go.dev/cl/611300 mentions this issue: regexp/syntax: Optimize calcFlags() for OpCharClass fold case
I've submitted a benchmark and a fix at https://github.com/golang/go/pull/69304.
New benchmark:
Go version
1.23 darwin/arm64
What did you do?
I received a report at https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6911 and ran a benchmark for
Regexp.String()
.What did you see happen?
Some regexes are extremely slow, even when they're simple. The negate
[^]
causescalcFlags
to run over a large character space to find a fold case.