Help us understand the problem. What is going on with this article?

gemのインストールで`--no-document`を付けると77倍早い

More than 3 years have passed since last update.
  • 普通にインストール → 309秒
  • 付けてインストール → 4秒

※効果には個人差があります。

初回は他の関連gemもまとめてインストールされるのでなお時間がかかるはず。

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
$ gem -v
2.4.5.1
$ gem uninstall rails
Successfully uninstalled rails-4.2.4
$ time gem install rails 
Fetching: rails-4.2.4.gem (100%)
Successfully installed rails-4.2.4
Parsing documentation for rails-4.2.4
Installing ri documentation for rails-4.2.4
Done installing documentation for rails after 305 seconds
1 gem installed

real    5m8.654s
user    5m5.728s
sys     0m0.231s
$ time gem install rails --no-document
Fetching: rails-4.2.4.gem (100%)
Successfully installed rails-4.2.4
1 gem installed

real    0m3.791s
user    0m0.620s
sys     0m0.118s

かつての --no-ri --no-rdoc はこれに変わったんだとか。(知らなかった)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away