classpath
[Top][All Lists]
Advanced

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

Re: 2nd attempt at Re: The right way(tm) of writing toString() (Was: Re:


From: David Lichteblau
Subject: Re: 2nd attempt at Re: The right way(tm) of writing toString() (Was: Re: [PATCH] Field position attribute handling)
Date: Sun, 30 Nov 2003 17:35:51 +0100
User-agent: Mutt/1.3.28i

Quoting Dalibor Topic (address@hidden):
> h) re-use the StringBuffer on the stack
> 
>   Rationale: In order to write as efficient code using StringBuffer as 
> the good Java compilers, we need to reuse the StringBuffer instance on 
> the stack. So instead of writing multiple append statements, try to use 
> a single statement to perform all the work on the StringBuffer instance, 
> including creation, calling append, and calling toString() on it.

That would only help with interpreters, right?  Nothing a good JIT does
not handle for you.

Attachment: pgpDj4WHs_bKK.pgp
Description: PGP signature


reply via email to

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