> > > When I see variables set to null after their use,
> > > I think that this programmer does not know Java.
> >
> > There are good reasons for doing this, but not if
> > the variables are transient.

> What 'good reasons' did you have in mind?

Serge posted an article today that discusses this issue in some detail.  See
"Explicit Nulling" in
http://www-106.ibm.com/developerworks/java/library/j-jtp01274.html.

Java performance has few absolutes.  For example, the author of that article
is not a fan of user-level object pooling.  Neither, for that matter, is the
J2SE tech lead.  However, when we added object pooling of certain objects in
James, we found that performance improved significantly under load.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to