Re: Slowdown when calling a plugin from within a loop
Posted by Eric Olson-3 on
URL: http://imagej.273.s1.nabble.com/Slowdown-when-calling-a-plugin-from-within-a-loop-tp3696849p3696852.html
Eric Olson said the following on 3/11/2008 5:14 PM:
> I thought maybe since I was calling the plugin repeatedly, the garbage
> collector just wasn't getting around to releasing some used objects,
> so I tried adding a System.gc() call at the end of each loop of my
> plugin, but that didn't help.
Found it. The plugin I was using to do the actual loading had a
temporary variable that wasn't reset each time the method was called. I
had just been assuming my plugin was at fault.