Hi Bob and others,

do you have any idea why the 'print' and 'message' commands are very 
slow in the Jmol application (version 14.3.12_2015.03.01), at least on 
my system (OpenSuse 12.2; IcedTea Java 1.7.0_45, IcedTea 2.4.3; Intel(R) 
Core(TM) i5-2500 CPU @ 3.30GHz with 4 cores)?

I have for example three nested loops where the inner commands are run 
about a million times. The outer loop is run only 100 times. So I 
expected that a 'print' command in the outer loop giving a progress 
report (e.g. "10 of 100...") wouldn't have much influence on the running 
time.

But I was wrong! With the 'print' (or 'message') command it took 
reproducibly about 43 seconds, without it only 23 seconds!

This means about one second per five print commands.
If this is not just the case on my system, I would suggest to add a 
warning to the scripting documentation that 'print' or 'message' 
commands can slow down scripts very considerably.

By the way, Jmol doesn't report the Java information correctly on my 
system. It reports this in the popup menu:

Java: Oracle Corporation
Java 1.7.0_45

'java -version' reports this:

java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-3.52.3-x86_64)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Regards,
Rolf

-- 

Rolf Huehne
Postdoc

Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax:     +49 3641 65 6210
E-Mail:  rhue...@fli-leibniz.de
Website: http://www.fli-leibniz.de

           Scientific Director: Prof. Dr. K. Lenhard Rudolph
        Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to