Rails constantize is more than twice as slow on JRuby
-----------------------------------------------------
Key: JRUBY-2310
URL: http://jira.codehaus.org/browse/JRUBY-2310
Project: JRuby
Issue Type: Bug
Components: Performance
Reporter: Ola Bini
The Rails performance quest have led me to believe that this is part of the
problem. The constantize method is used in Route recognition, (at every request)
For a simple thing like
{noformat}
"Hash".constantize
{noformat}
for 10_000 times, MRI is at about 0.08s and JRuby 0.2s.
I would assume that constantize uses a simple eval, and that this is the
problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email