Posted by
Mark Hiner on
Dec 11, 2015; 3:48pm
URL: http://imagej.273.s1.nabble.com/Poor-performance-of-Java-tp5015218p5015220.html
Hi Gabriel,
It seems like windows management (image windows - not the OS) has become
slower since Java 6. Understanding why exactly would likely require diving
into the Java source itself. It definitely is present in Mac.
The only workarounds I know of are to use Java 6 or, like you said, use
batch mode whenever possible.
Best,
Mark
On Fri, Dec 11, 2015 at 6:46 AM, Gabriel Landini <
[hidden email]>
wrote:
> Hi,
> I noted that when dealing with several windows the performance of Java 1.8
> is
> appalling compared to 1.6, so I tested a few versions of Java under linux
> with
> the following macro (just times the MRI Stack being converted to images).
>
> run("MRI Stack (528K)");
> t=getTime();
> run("Stack to Images");
> print (getTime()-t);
> run("Images to Stack", "name=Stack title=[] use");
>
> The difference is quite incredible, more than one order of magnitude (the
> figures are the 'best' out of 3 runs):
>
> // JavaVersion Time(ms) Batchmode(ms)
> // 1.8 Oracle 7367 27
> // 1.8 OpenJDK 7237 23
> // 1.7 OpenJDK 7562 40
> // 1.6 Oracle 554 32
>
> Fortunately when the macro batch can be used, it avoids these delays, but
> when
> running IJ interactively the poor performance is noticeable too.
>
> I wonder why this performance glitch is there. Does this happen in Win and
> Macs too?
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html