On 12/16/2015 07:30 PM, Paul PILLOT wrote: > Hi Rolf, > my experience in this area is not JSmol related, but when I had to deal with > big tables in javascript (for a multiple sequence alignment script, aligning > 2 sequences of 5000 signs, requires at least 1 table of 5000 rows and 5000 > columns), I noticed that : > - using integers only tables is fastest > - opting for one dimensional array instead of two dimensional didn’t make a > noticeable difference > - using typed arrays in some cases improved significantly the performance ( > see https://developer.mozilla.org/en/docs/Web/JavaScript/Typed_arrays > <https://developer.mozilla.org/en/docs/Web/JavaScript/Typed_arrays> ). This > was 2 years ago, and the browsers’ engine landscape can be quickly moving... > When you parse your data from your TSV file, are the fields stored as text ? > Most of the data is textual. It contains additional information for atoms that must be accessible similarly like the built-in atom properties. Since user-defined atom properties can only be numbers the data must be put into a separate data structure. And some of the data is also put into very specific helper hashes or arrays for faster access and processing.
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