Re: [Math] Synchronization

2012-07-22 Thread Gilles Sadowski
Hello. > On 22/07/2012 02:43, Gilles Sadowski wrote: > > On Sat, Jul 21, 2012 at 11:44:43AM -0700, Ted Dunning wrote: > >> Synchronization in low level code is generally really bad. This is the > >> whole point of why Vector was essentially thrown away in Java collections > >> in favor of ArrayLi

Re: [Math] Synchronization

2012-07-22 Thread Luc Maisonobe
Hi Gilles, On 22/07/2012 02:43, Gilles Sadowski wrote: > On Sat, Jul 21, 2012 at 11:44:43AM -0700, Ted Dunning wrote: >> Synchronization in low level code is generally really bad. This is the >> whole point of why Vector was essentially thrown away in Java collections >> in favor of ArrayList. >

Re: [Math] Synchronization

2012-07-21 Thread Gilles Sadowski
On Sat, Jul 21, 2012 at 11:44:43AM -0700, Ted Dunning wrote: > Synchronization in low level code is generally really bad. This is the > whole point of why Vector was essentially thrown away in Java collections > in favor of ArrayList. I might be wrong, but I don't think that's the reason. At the

Re: [Math] Synchronization

2012-07-21 Thread Ted Dunning
Synchronization in low level code is generally really bad. This is the whole point of why Vector was essentially thrown away in Java collections in favor of ArrayList. Better to synchronize in the caller who knows about the multi-threading. Or simply build a synchronized wrapper in an inner clas

Re: [Math] Synchronization

2012-07-21 Thread Gilles Sadowski
On Fri, Jul 20, 2012 at 07:26:59PM -0700, Phil Steitz wrote: > On 7/20/12 5:39 PM, Gilles Sadowski wrote: > > Hi. > > > >> Author: erans > >> Date: Sat Jul 21 00:08:18 2012 > >> New Revision: 1364024 > >> > >> URL: http://svn.apache.org/viewvc?rev=1364024&view=rev > >> Log: > >> MATH-797 > >> Perfo

Re: [Math] Synchronization (Was: svn commit: r1364024 - ...)

2012-07-20 Thread Phil Steitz
On 7/20/12 5:39 PM, Gilles Sadowski wrote: > Hi. > >> Author: erans >> Date: Sat Jul 21 00:08:18 2012 >> New Revision: 1364024 >> >> URL: http://svn.apache.org/viewvc?rev=1364024&view=rev >> Log: >> MATH-797 >> Performance: synchronization should ensure that the computation of each >> rule will be

[Math] Synchronization (Was: svn commit: r1364024 - ...)

2012-07-20 Thread Gilles Sadowski
Hi. > Author: erans > Date: Sat Jul 21 00:08:18 2012 > New Revision: 1364024 > > URL: http://svn.apache.org/viewvc?rev=1364024&view=rev > Log: > MATH-797 > Performance: synchronization should ensure that the computation of each > rule will be performed once, even if the factory is accessed from m