summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2025-09-16 17:45:02 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-09-17 15:42:23 +0900
commite4fc0d4b3ff483224d7264d1c734532636840da5 (patch)
tree8828dd00a2e799b735473f2bef92c47a5cd7d868 /test/ruby
parent5a07417c6fb0009570a71c9ae40bb7dde5607c42 (diff)
[rubygems/rubygems] 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.https://github.com/rubygems/rubygems/commit/670195550005} {stddev: 0.https://github.com/rubygems/rubygems/commit/029875687861} {"mib/s": 20.https://github.com/rubygems/rubygems/commit/889425481677} ``` This commit: ``` aaron@tc ~/g/tartest (main)> ruby -I../rubygems/lib:../vernier/lib test.rb {MEAN: 0.https://github.com/rubygems/rubygems/commit/600223749969} {stddev: 0.https://github.com/rubygems/rubygems/commit/037224226667} {"mib/s": 23.https://github.com/rubygems/rubygems/commit/324635189326} ``` https://github.com/rubygems/rubygems/commit/e40a153560
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions