Re: selectImage(title) is slow in Java 8

Posted by vischer on
URL: http://imagej.273.s1.nabble.com/selectImage-title-is-slow-in-Java-8-tp5018076p5018083.html

Hi Gabriel,
on my Macbook Air, Java 8 is factor 1.3 slower:

Java 6:
ImageJ 1.51j15; Java 1.6.0_65 [64-bit]; Mac OS X 10.10.3; 8554K of 3000MB (<1%)
Batch mode: 5
Normal mode: 3165

Java 8:
ImageJ 1.51k5; Java 1.8.0_101 [64-bit]; Mac OS X 10.10.3; 39MB of 3000MB (1%)
Batch mode: 2
Normal mode: 4264

Best regards, Norbert


> While we are discussing this, I'll mention this other issue (I think I have
> posted about it before, but I do not seem to be able to search the list
> archive to check if I did, for some reason).
> The macro below is about 7 times slower in java 8 and 7, compared with java 6
> in linux when you run in "Normal mode":
>
> setBatchMode(true);
> run("MRI Stack (528K)");
> t=getTime();
> run("Stack to Images");
> print ("Batch mode: "+getTime()-t);
> run("Images to Stack", "name=Stack title=[] use");
> setBatchMode(false);
> t2=getTime();
> run("Stack to Images");
> print ("Normal mode: "+getTime()-t2);
> run("Images to Stack", "name=Stack title=[] use");

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html