4 ms·
asdf is nice except is uses shims. They are pretty slow. If you offten run script as part of your prompt for example, it gets noticable pretty quickly.
by TeddyDD 5y ago
asdf is nice except is uses shims. They are pretty slow. If you offten run script as part of your prompt for example, it gets noticable pretty quickly.
- Conlectus 5y agoThis surprises me. The shim should only introduce the latency of a single disk read, right? Have you seen a difference yourself, and if so, could it have been from the overhead of loading gems instead?
- philipbjorge 5y agoI've seen this difference myself and done some profiling on it in the past with asdf. I also know that Sam Saffron has mentioned the shim latency a bit before as well with other tools. > We stopped benching on rbenv based systems, everyone moved to chruby or rvm cause the shims rbenv adds introduce significant delays on boot. https://discuss.rubyonrails.org/t/why-is-rails-boot-so-slow-on-macos/74021 https://discuss.rubyonrails.org/t/why-is-rails-boot-so-slow-...
- TeddyDD 5y agoTake a look at this issue: https://github.com/asdf-vm/asdf/issues/290 https://github.com/asdf-vm/asdf/issues/290