commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schildbach <>
Subject Re: [lang] FastNumberFormat?
Date Tue, 10 Aug 2004 20:23:11 GMT
Martin Cooper wrote:

> Is there a fast version of java.text.NumberFormat hiding somewhere in
> Commons Lang that I haven't been able to find? The JDK version of
> format() actually does synchronisation, and I'm calling it enough that
> this hurts.

Are you sure that it synchronizes?

 From the NumberFormat JavaDoc:

"Number formats are generally not synchronized. It is recommended to 
create separate format instances for each thread. If multiple threads 
access a format concurrently, it must be synchronized externally."



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message