Instantiating Java subclasses is excrutiatingly slow
----------------------------------------------------
Key: JRUBY-2069
URL: http://jira.codehaus.org/browse/JRUBY-2069
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.1RC1, JRuby 1.0.3, JRuby 1.0.2, JRuby 1.0.1,
JRuby 1.0.0
Environment: trunk | 1_0 branch | any released version; WinXP, Java 1.6
Reporter: Bill Dortch
Assignee: Bill Dortch
Fix For: JRuby 1.1RC2
Instantiating a Ruby-defined Java subclass takes 100X longer than instantiating
a similar Java class. For example, on my WinXp machine, creating 10,000
instances of java.util.ArrayList takes less than half a second; creating 10,000
instances of a subclass that trivially overrides the ArrayList#clear method
takes close to *a minute*.
I thought at first this was a regression, but testing reveals the badness goes
clear back to version 1.0.
I'm going to make a JI performance pass over the next several days, will see if
I can speed this up. There's no reason it needs to be this slow.
--
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