Thats more or less what does LongAdder in a more clever way. Le 4 nov. 2013 18:15, "Ted Dunning" <ted.dunn...@gmail.com> a écrit :
> My experience is that the only way to get really high performance with > counter-like objects is to have one per thread and combine them on read. > > > > > On Mon, Nov 4, 2013 at 8:49 AM, Romain Manni-Bucau <rmannibu...@gmail.com > >wrote: > > > Hi, > > > > ATM sirona (a java monitoring library in incubator) relies a lot on > > Summary stats object from [math3] but it needed a lock to ensure > > consistency. I know there is a synchronized version but this one > > scales less then the locked one. > > > > My question is quite simple then: will [math] add an implementation > > with thread safety guarantee and good performances? I think for > > instance to the LongAdder of Doug Lea which could be used as a good > > base. > > > > Romain Manni-Bucau > > Twitter: @rmannibucau > > Blog: http://rmannibucau.wordpress.com/ > > LinkedIn: http://fr.linkedin.com/in/rmannibucau > > Github: https://github.com/rmannibucau > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > >