classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] Patch: support for reading directories viaURL.openConne


From: Archie Cobbs
Subject: Re: [cp-patches] Patch: support for reading directories viaURL.openConnection()
Date: Thu, 9 Sep 2004 11:31:01 -0500 (CDT)

Jeroen Frijters wrote:
> Static initializers are quite expensive, so we should try to limit
> them as much as reasonable.

I'm curious about what you mean exactly by this statement..

Obviously, we should avoid executing static initializers whose result
isn't going to be used, so "on demand" initialization is usually better.

Otherwise, there doesn't seem to me to be any reason why code should
be more expensive to execute in a static initializer than outside
of one.. is that what you're implying? If so, why, and wouldn't those
reasons be dependent on the particular VM being used?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com




reply via email to

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