Sparse switch out and back, 300 visible files and 400 excluded directories
repo: 120,000-file repository with a 300-file visible sparse workset; sparse reset/switch scaling · 120,000 files · 2 commits · 3 refs
| tool | median | min | max | runs | peak memory |
|---|---|---|---|---|---|
| git | 42 ms | 41 ms | 44 ms | 20 | 7.8 MB |
| grit | 23 ms | 22 ms | 24 ms | 20 | 20 MB |
$ git switch --detach sparse-base && git switch --detach sparse-edited
$ grit switch --detach sparse-base && grit switch --detach sparse-edited