This is an archive of the discontinued Mercurial Phabricator instance.

rust-regex: increase the DFA size limit for the `regex` crate
ClosedPublic

Authored by Alphare on May 7 2020, 6:30 AM.

Details

Summary

re2's DFA limit is already increased in rust/hg-core/src/re2/rust_re2.cpp,
the same has to be done for the regex crate.

Big repositories with big .hgignores will sometimes hit this limit and face
extreme performance regressions (I've seen one take *minutes* for hg status).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Alphare created this revision.May 7 2020, 6:30 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.