Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ chrono = "0.4"
regex = "1.12"
aho-corasick = "1.1"
# The single regular-expression engine, through crates/perry-perex.
perex = "0.1.3"
perex = "0.1.4"
hex = "0.4"
tempfile = "3"
itoa = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/10201-regex-perex-0.1.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Performance

- **Required text after a character-class repeat no longer makes each RegExp search cost its start position** (#10201). A pattern such as `/([a-z]+)([0-9]+) /g` or `/[a-z]+[0-9]+ /y` made every `exec` or `test` call over an ASCII string pay work proportional to `lastIndex`, so a loop over one string was quadratic: 21 s for 40,000 matches over a 200,000-character string. The same loop now takes 85 ms. Requires `perex` 0.1.4.
Loading