Re: [Biojava-l] ChangeSupport.java

2002-03-05 Thread Thomas Down
Hi... Global objects are only one case of something which can potentially have a lot of other objects listening to them, albeit an important one. But yes, you're certainly right insofar as that if they're really immutable, they don't need ChangeSupport. That said, I still think the WeakReferenc

Re: [Biojava-l] ChangeSupport.java

2002-03-05 Thread Phillip Lord
> "Thomas" == Thomas Down <[EMAIL PROTECTED]> writes: Thomas> - It keeps hard references to the listeners, rather than Thomas> using the java.lang.ref package to maintain weak references. Thomas> It becomes very easy to listen to a `global' object (for Thomas> instance, the DNA Alph

Re: [Biojava-l] ChangeSupport.java

2002-03-05 Thread Thomas Down
On Mon, Mar 04, 2002 at 10:06:27PM -0500, Peter Kharchenko wrote: > Biojava guys (/girls?) , > > I am using biojava for sequence alignment stats. I ran into a really > bad performance problem, which was apparently was caused by a rather > naive implementation of org.biojava.util.ChangeSupport

[Biojava-l] ChangeSupport.java

2002-03-05 Thread Peter Kharchenko
Biojava guys (/girls?) , I am using biojava for sequence alignment stats. I ran into a really bad performance problem, which was apparently was caused by a rather naive implementation of org.biojava.util.ChangeSupport class. Rewriting that class sped up my application by more then factor of