]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #81833 - the8472:parallel-bootstrap-rustfmt, r=Mark-Simulacrum
authorYuki Okushi <huyuumi.dev@gmail.com>
Sun, 21 Feb 2021 06:26:41 +0000 (15:26 +0900)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 06:26:41 +0000 (15:26 +0900)
commit4c1f195e0b5de82d40da8a1bd6bbbe049d586c6b
treed521b78d246f4b2d3b1fef78218f242d7f601663
parent56ae3fb2f0888a6a6857eec5c0109fcb3eefe258
parentc07197046d40f973ce2217328444426214193e7e
Rollup merge of #81833 - the8472:parallel-bootstrap-rustfmt, r=Mark-Simulacrum

parallelize x.py test tidy

Running tidy on individual commits when rewriting git history was somewhat of an annoyance, so I have parallelized it a bit.

running `time ./x.py test tidy` with warm IO caches:

old:

```
real 0m11.123s
user 0m14.495s
sys 0m5.227s
```

new:

```
real 0m1.834s
user 0m13.545s
sys 0m3.094s
```

There's further room for improvement (<0.9s should be feasible) but that would require bigger changes.