Skip to content
Snippets Groups Projects
Commit 687e192d authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

rust-matchers: fix quadratic complexity in `FileMatcher`

Concretely, this command:

```
$ echo hg up -r <nodeid>; time hg revert dir1 dir2 -r <othernode> --debug
hg up -r <nodeid>

real	0m14.690s
user	0m14.766s
sys	0m5.430s
```

was much slower despite using 16 cores before this change.
The approach taken here is the same one used in match.py, in exactmatcher.

This changeset was originally written by Valentin Gatien-Baron in a private
repository.
I have redacted the commit message and did a minor clean up of the code.
parent 0250e450
No related branches found
No related tags found
2 merge requests!701Merge default into stable for 6.6rc0,!693rust-matchers: fix quadratic complexity in `FileMatcher`
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment