[concurrency-interest] Joda-Time immutability

Mark Thornton mthornton at optrak.com
Mon Aug 1 17:46:33 EDT 2011


On 01/08/11 22:15, Shay Banon wrote:
> I just did a quick test by changing to volatile field the 1.6 release, 
> and on my machine I see 6x worse perf on 10 million data points (on a 
> "real world" use case in my system, end to end). Naturally, this will 
> vary depending on many aspects (number of cores, os) in terms of how 
> volatile write and read are handled. I really think that this is the 
> wrong solution to the "problem", but up to you...
What sort of machine are you using? My impression was that volatile is 
quite cheap on x86.

Mark Thornton



More information about the Concurrency-interest mailing list