问题
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