新手问题 如何提供 irb 的启动速度

lilijreey · 2018年08月03日 · 最后由 posee 回复于 2018年10月04日 · 921 次阅读

机子使用 rvm 安装的ruby, 启动速度很慢,用strace 跟踪了一下发现会加载大量库的encodeing... 设置为什么? stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.so", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.0/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.0/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.7.0/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.so", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.so", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.4.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.4.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.rb", 0x7ffc68053d60) = -1 ENOENT (No such file or directory) stat("/home/god/.rvm/gems/ruby-2.2.3/gems/sprockets-3.4.1/lib/irb/lc/en_US.UTF-8/encoding_aliases.rb.so", 0x7ffc68053d60) = -1 ENOENT (No such file or directory)

共收到 5 条回复

你这排版太乱了, 我进来的第一反应就是返回

你这个帖子,为什么没有被和谐掉!

启动要多久?

大概5秒以上

lilijreey 回复

不是提供,是提高?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册