Alan Macek wrote: > As a supplement to the recent constructor caching changes made to > java.lang.Class.newInstance(), I would like to offer the > following change which caches the default constructor more > often. I am new to working with Classpath and I would like > to hear why this change might or might not work. > Please add it to the project if it seems to help. I have found a > substantial performance increase with this change on code > that is using newInstance().
The current code didn't make much sense (not sure why I wrote it that way). Attached is a patch that hopefully makes more sense. I think your fix was correct too, but I had a work time understanding my own code so decided to clean it up a bit. Regards, Jeroen _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath

