Commit e40a153
committed
Stop trying to remove every file on extraction
When we're extracting a gem, it should be extracted to an empty
directory. Trying to remove every file before extracting the file
greatly slows the tar extraction process.
This change increases tar extraction speed by about 10%:
Master branch:
```
aaron@tc ~/g/tartest (main)> ruby -I../rubygems/lib:../vernier/lib test.rb
{MEAN: 0.6701955500058829}
{stddev: 0.029875687861609046}
{"mib/s": 20.88942548167786}
```
This commit:
```
aaron@tc ~/g/tartest (main)> ruby -I../rubygems/lib:../vernier/lib test.rb
{MEAN: 0.6002237499691546}
{stddev: 0.03722422666707127}
{"mib/s": 23.324635189326408}
```1 parent fa1a80f commit e40a153
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | 439 | | |
442 | 440 | | |
443 | 441 | | |
| |||
0 commit comments