Skip to content

Limit reshim to current Ruby version #469

@theodorton

Description

@theodorton

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

def install(options)
super
# We don't know which gems were installed, so always reshim.
`asdf reshim ruby`
end
end

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions