From: tenderlove@... Date: 2021-03-15T23:31:40+00:00 Subject: [ruby-core:102876] [Ruby master Feature#17684] Remove `--disable-gems` from release version of Ruby Issue #17684 has been updated by tenderlovemaking (Aaron Patterson). I forgot another place I use `--disable-gems`. I think RubyGems does lots of IO at startup, and IO is extremely slow on my Raspberry PI. I'm using Ruby on Raspberry PI for some IoT stuff around my house and I use `--disable-gems` in those environments. Here is the difference: ``` pi@lcd-screen:~ $ time ruby -v --disable-gems -e' ' ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [armv6l-linux-eabihf] real 0m0.291s user 0m0.118s sys 0m0.082s pi@lcd-screen:~ $ time ruby -v -e' ' ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [armv6l-linux-eabihf] real 0m2.395s user 0m1.998s sys 0m0.129s ``` My Ruby installation only has the default gems installed, but RubyGems adds 2 seconds to startup. ---------------------------------------- Feature #17684: Remove `--disable-gems` from release version of Ruby https://bugs.ruby-lang.org/issues/17684#change-90937 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Priority: Normal ---------------------------------------- In my understand, `--disable-gems` is only debugging feature for ruby-core team. But some users enabled its option in test environment for performance or etc. So, `--disable-gems` option is wrong usage for some users. * https://github.com/rubygems/bundler/issues/7487#issuecomment-569901549 * https://github.com/rubygems/rubygems/pull/4440#issue-587031184 We should remove it from package version of ruby. -- https://bugs.ruby-lang.org/ Unsubscribe: