Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.6, JRuby 1.6.7
-
Fix Version/s: JRuby 1.6.8
-
Component/s: Core Classes/Modules, Performance, Ruby 1.8.7
-
Labels:None
-
Environment:not OS related. We reproduced this on a Mac OSX Snow Leopard
-
Testcase included:yes
-
Number of attachments :
Description
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.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] | |
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Resolution | Fixed [ 1 ] |
Hiroshi Nakamura
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Assignee | Charles Oliver Nutter [ headius ] | Hiroshi Nakamura [ nahi ] |
Hiroshi Nakamura
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby 1.6.8 [ 18345 ] | |
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Resolution | Fixed [ 1 ] |