18
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at
  • 普通にインストール → 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 はこれに変わったんだとか。(知らなかった)

18
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?