[Top][All Lists]
[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:54:28 +0200 |
Oops. Forget to attach the file.
Here it is.
Regards,
Jeroen
>
> -----Original Message-----
> From: Jeroen Frijters [mailto:address@hidden
> Sent: Friday, June 06, 2003 09:12
> To: Alan Macek; address@hidden
>
> 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpath
>
class.patch
Description: class.patch