Li Xiao created JRUBY-6580:
------------------------------
Summary: performance drop with threadsafe autoloading for JRuby
1.6.6.
Key: JRUBY-6580
URL: https://jira.codehaus.org/browse/JRUBY-6580
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Performance, Ruby 1.8.7
Affects Versions: JRuby 1.6.7, JRuby 1.6.6
Environment: not OS related. We reproduced this on a Mac OSX Snow
Leopard
Reporter: Li Xiao
Priority: Blocker
Attachments: autoload_bug.zip, debug.patch
With the d9426515f8497c635d3aeebdc8d12c6105bf6ab8 changeset we see about 20-25%
drop in performance for a specific case where objects extend a module via
active_support/core_ext/object/metaclass.
We have a ruby test script is attached to allow you to reproduce the problem.
We ran our test script against 1.6.7 and 1.6.7 with the d94265 changeset
removed and saw 20% performance improvement.
Attached files:
* autoload_bug.zip: a test script to reproduce performance issue, run test.rb
* debug.patch: there are some debug output patched to 1.6.7 branch, and if you
built a complete jar with this patch, and run the test, you should see that
class C is never mark as autoloaded.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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