gem is very slow

随声附和 提交于 2020-01-02 06:32:10

问题


On my server searching is fast but on my local machine gem searches are slow. Can I do something for speed up my gem searches?


回答1:


The solution from Doc Snuggles really works.

But it should be notice that your gem command maybe living in a gemset, that is:

rvm info | grep gem

will tell you where the gem script lives.

Then edit it and add the magic line before any other require:

require 'resolv-replace'



回答2:


Maybe you could try this:

In gem (mine’s at /usr/local/bin/gem), add this line before any other code:

require 'resolv-replace'




回答3:


remove a few gems (couldn't resist). make sure you're on the latest version. are you running windows? [if so, 1.9.1 is slow with gem lists for some reason] -r



来源:https://stackoverflow.com/questions/1887704/gem-is-very-slow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!