On Thu, 6 Jul 2006, Sean Russell wrote:

> On Wednesday 05 July 2006 17:30, ara.t.howard / noaa.gov wrote:
>> any idea why this script slows downs drastically as it runs and seems to
>> leak memory?
>
> Slow compared to what?  Number of calls per second?

slow compared to how fast it starts - eventually it actually will halt.

> Creating threads and synchronizing is computationally expensive.  I'm not
> aware of any language where this isn't true, especially for synchronization.
> In your code, you incur a 28x lag per call by synchronizing with the sync
> library, and another 14x lag lag per call with the thread creation.*
>
> It looks (from a later email) like you found the memory leak.

yes.  there is some sort of memory corruption occuring.  why this is so,
however, i have no idea...

cheers.

-a
-- 
suffering increases your inner strength.  also, the wishing for suffering
makes the suffering disappear.
- h.h. the 14th dali lama