-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assets rendering is very slow since ruby 2.1.3 #16
Comments
No, it is not a known problem. Could you please compare assets rendering w/o debugger? |
I am also having this issue. Massive slowdown when using debugger in ruby 2.1.3/2.1.4 It takes over 20 seconds just to start my test suite where as without debugger it takes less than 5. The code base for the test suite is very large with many rails plugins and mountable engines. |
+1 experience the slowdown with ruby 2.1.4 |
It would be nice to have some project to reproduce the problem (my simple projects don't demonstrate it :( |
Unfortunately the project I work on is under close source. :( What change do you think may have caused the issue. If you point to the change in ruby I can investigate and see if anything obvious stands out that might relate specifically to our code base. |
Here are changes in vm_trace.c in ruby which look suspicious. --- ./ruby-2.1.2/vm_trace.c 2013-12-17 11:19:25.000000000 +0400
|
Humm. The formatting seems to have gone a bit wonky. I don't have time to try recompiling right now. Do you think this is something that debase can work around or will all future versions need to be recompiled without these recursive functions? |
I think if this is the problematic case we will need to discuss with ruby developers about possible ways to either improve ruby implementation or debase code |
I can confirm issue still exists with ruby 2.1.5. Also I tried using 2.1.2 and its still painfully slow. I'm now not convinced the issue is due to the ruby version. |
Need a test project to work with :( |
I've created a test app on github :
|
I was able to reproduce the problem with https://github.com/railstutorial/sample_app_rails_4 and have confirmed my theory that this is a fix for ruby bug https://bugs.ruby-lang.org/issues/9940 who causes this performance regression. Will contact ruby developers to see what we can do here. |
I've created https://bugs.ruby-lang.org/issues/10511 |
The problem has been fixed in 2.2.0-dev (see https://bugs.ruby-lang.org/issues/10511) |
It works better but still far slower than 2.1.2 |
I have tried https://github.com/Olivier4murs/debase-slow-assets and see similar results :(2.2-head is 1.5-2 times slower than 2.1.2) Well investigate what may cause the problem. |
I've found one more cause of the performance degradation: https://bugs.ruby-lang.org/issues/10511#note-11 |
The problem is fixed now (https://bugs.ruby-lang.org/issues/10511#note-23) |
Thanks, it's resolved ! |
wonderful!!! So, I'm closing the ticket. |
In my Rails 4.1.7 app, rendering a page with assets is about 5 times slower with ruby 2.1.3 (or 2.1.4) than with 2.1.2
I'm using Rubymine to debug (which use debase 0.1.0 and ruby-debug-ide 0.4.23.beta10)
When running with debugging off, I don't have this slowdown.
Is this problem already known? Do you need more details?
Thanks
The text was updated successfully, but these errors were encountered: