asdf-vm / asdf-vm/asdf-ruby

Limit reshim to current Ruby version

Open
#469 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
734
Forks
156
Avg merge
17h 6m
Merged PRs (30d)
1

Description

If you have a lot of ruby versions installed, the reshim in:

https://github.com/asdf-vm/asdf-ruby/blob/6b1e7ea906e6980e42dbf35e778e5313711526c4/rubygems-plugin/rubygems_plugin.rb#L2-L7

that is triggered on every `bundle update` - can get really slow:

```
$ time asdf reshim ruby

________________________________________________________
Executed in 22.94 secs fish external
usr time 7.65 secs 425.00 micros 7.65 secs
sys time 10.64 secs 878.00 micros 10.64 secs
```

Limiting the reshim to the current version would make it orders of magnitude faster:

```
$ time asdf reshim ruby 3.4.5

________________________________________________________
Executed in 1.07 secs fish external
usr time 380.67 millis 365.00 micros 380.31 millis
sys time 474.90 millis 938.00 micros 473.97 millis
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.