求助:bundle exec 非常慢

2014-10-14 10:57:54 +08:00
 bolasblack

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

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

4042 次点击
所在节点    Ruby
1 条回复
bolasblack
2014-10-14 17:30:32 +08:00
很奇怪,重新克隆下来 `bundle install` 后就不慢了……

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/138792

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX