Login  Register

Re: IJ under linux performance problem

Posted by Albert Cardona on Aug 30, 2007; 9:03pm
URL: http://imagej.273.s1.nabble.com/IJ-under-linux-performance-problem-tp3698488p3698495.html

Gabriel,

I have followed the sequence you mention involving the MRI stack and I can only observe a subsecond delay where you claim 6 seconds.
But then my machine is a core2 quad 2.4 Ghz with 4 Gb DDR3 800 RAM, which can mask away any such delays. Plus I'm running gnome, not kde, if that makes any difference.

One would have to run a profiler and measure where is time spent when the command to close the window or show the dialog is issued.
There are eclipse plugins to do so, which you could run.

There's also ImageJ code that is executed only for java 5 or for java 6. Just search ImageJ source code for calls to IJ.isJava16() to find out where.

Some relevant lines:

ij/process/ByteProcessor.java:71:               if (ij.IJ.isJava16()) return createBufferedImage();
ij/process/ColorProcessor.java:63:              if (ij.IJ.isJava16()) return createBufferedImage();

The above actually shows the reason for the speed ups in 1.6.0: images share the array with the processor instead of duplicating it.
Besides, 1.6.0 automatically hardware-accelerates all or most images.

So much to say that, without a profiler, I remain clueless.


Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona