Mercurial > hg
view rust/rhg/Cargo.toml @ 49517:52464a20add0
rhg: parallellize computation of [unsure_is_modified]
[unsure_is_modified] is called for every file for which we can't
determine its status based on its size and mtime alone.
In particular, this happens if the mtime of the file changes
without its contents changing.
Parallellizing this improves performance significantly when
we have many of these files.
Here's an example run (on a repo with ~400k files after dropping FS caches)
```
before:
real 0m53.901s
user 0m27.806s
sys 0m31.325s
after:
real 0m32.017s
user 0m34.277s
sys 1m26.250s
```
Another example run (a different FS):
```
before:
real 3m28.479s
user 0m31.800s
sys 0m25.324s
after:
real 0m29.751s
user 0m41.814s
sys 1m15.387s
```
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Wed, 05 Oct 2022 15:45:05 -0400 |
parents | a932cad26d37 |
children | 1b6be761c23d 812a9fbf4380 |
line wrap: on
line source
[package] name = "rhg" version = "0.1.0" authors = [ "Antoine Cezar <antoine.cezar@octobus.net>", "Raphaël Gomès <raphael.gomes@octobus.net>", ] edition = "2018" [dependencies] atty = "0.2.14" hg-core = { path = "../hg-core"} chrono = "0.4.19" clap = "2.34.0" derive_more = "0.99.17" home = "0.5.3" lazy_static = "1.4.0" log = "0.4.14" micro-timer = "0.4.0" regex = "1.5.5" env_logger = "0.9.0" format-bytes = "0.3.0" users = "0.11.0" which = "4.2.5" rayon = "1.5.1"