On 12/18/2015 10:00 PM, Robert Hanson wrote: > I'm not sure the Java data are significant -- all you are seeing there is > the overhead for executing JavaScript from Java. The Java itself has > nothing to do with it, since the loop is in JavaScript. > But the 'performance.now()' calls are done inside the script, so the overhead shouldn't matter.
> Note that you need to use .slice() not .slice(0). The latter just pulls > the first value out. > The documentation for 'slice()' at "http://www.w3schools.com/jsref/jsref_slice_array.asp" says that the first parameter 'start' is required and that the array is copied until the end if the second parameter 'end' is omitted. Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rhue...@leibniz-fli.de Website: http://www.leibniz-fli.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Burkhard Zinner VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users