> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Babysitting ThreadLocals

> Removing the ThreadLocal after every request of course means 
> that the use of ThreadLocal is entirely useless.

> Should I stop worrying about the overhead of creating a
> SimpleDateFormat?

Given that the cost of generating and writing a log entry is going to vastly 
outweigh any object creation or synchronization impact, then, yes, you should 
stop worrying.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

 

Reply via email to