开发者

gem is very slow

On my server searching is fast but on m开发者_高级运维y local machine gem searches are slow. Can I do something for speed up my gem searches?


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'


Maybe you could try this:

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

require 'resolv-replace'


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜