classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java.lang.Class.newInstance() construction caching


From: Jeroen Frijters
Subject: RE: java.lang.Class.newInstance() construction caching
Date: Fri, 6 Jun 2003 09:11:41 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]