V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
bolasblack
V2EX  ›  Ruby

求助:bundle exec 非常慢

  •  
  •   bolasblack · 2014-10-14 10:57:54 +08:00 · 4035 次点击
    这是一个创建于 3481 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Ruby 版本 2.1.1
    Bundle 版本 1.7.3
    操作系统是跑在 Vagrant 里的 Gentoo

    比如调用 bundle exec annotate 的时候:

    Nothing annotated.
    bundle exec annotate  4.33s user 54.82s system 46% cpu 2:08.45 total
    

    Rake 相关的命令也执行的非常慢,比如 bundle exec rake db:migrate

    bundle exec rake db:migrate  4.31s user 55.93s system 53% cpu 1:51.99 total
    

    请问大家有这种经验吗?什么东西会导致这种情况发生?

    1 条回复    2014-10-14 17:30:32 +08:00
    bolasblack
        1
    bolasblack  
    OP
       2014-10-14 17:30:32 +08:00
    很奇怪,重新克隆下来 `bundle install` 后就不慢了……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5425 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:38 · PVG 15:38 · LAX 00:38 · JFK 03:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.