News for hackers. Stuff that matters.
Re:Add bytecode cache to Ruby by fizx on Wednesday June 17, 2015 @07:44PM (#9735965)
It's mostly annoying in development when your mid-large Rails app takes 30s-2m to start-up and/or reload after an edit.
Re:Add bytecode cache to Ruby by vidarh on Wednesday June 17, 2015 @08:54PM (#9736175)
Most of the time that is likely due to bundler/rubygems stuffing your load path full and causing thousands of unnecessary stat calls.

The actual time spent loading/parsing files is in most cases a tiny fraction of the startup time of any large project using rubygems and bundler.

I counted several hundred thousand unnecessary stat calls on the biggest app I have, and ended up with a ugly hack where we trimmed the load path around each set of require's to only paths needed by that specific gem.

Re:Add bytecode cache to Ruby by foz on Thursday June 18, 2015 @12:43AM (#9736880)
Or, as I've seen a few times, you have circular references in your rails asset includes.