It'll always be a little slower at runtime, but I'd rather be able to
troubleshoot .01 milliseconds slower than be baffled at full speed.

Wim De Clercq wrote:
> 
> I agree. Is a good VM not able to optimize this at runtime?
> 
> Wim
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> Sent: donderdag 8 maart 2001 22:06
> To: JBoss-Dev
> Subject: Re: [jBoss-Dev] optimizing out debug code
> 
> I'd personally rather be able to configure that at runtime.
> 
> Andrius Juozapaitis wrote:
> >
> > hi,
> >
> > just a small thing. it is possible to optimize out the debug code in
> > JDBCCommand.java and WebServer.java, just modify
> >
> >    public static boolean = false;
> > to
> >    public static final boolean debug = false;
> >
> > during compile time, if a constant evaluates to true, the compiler omits
> the
> > conditional statement at all. so if there is no need of setting this
> > property at the runtime, changing this would probably be a good idea.
> >
> > regards,
> > --andrius

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen

Reply via email to