I was thinking of alternatives to s = "a" + "b" + "c"
On Fri, Dec 18, 2015 at 2:20 PM, Paul PILLOT <paulpil...@gmail.com> wrote: > Regarding strings, from what I experienced, getting a value from an array > is a lot faster when the array is index based than when the array is > associative (strings as indexes) > Don’t know if that applies to your case... > Paul > > Le 18-12-2015 à 15:15, Robert Hanson <hans...@stolaf.edu> a écrit : > > (the copy is the same as System.arraycopy -- it only copies references for > objects, but it copies scalars such as integers and floats.) > > On Fri, Dec 18, 2015 at 2:05 PM, Robert Hanson <hans...@stolaf.edu> wrote: > >> Oh, yes. .slice() copies all or part of an array. >> >> That's certainly a major improvement. Excellent. Jsmol is now using >> .slice() exclusively when possible. >> I suspect some of that fast processing time is due to this use. >> >> This is the kind of deep optimization that really have an effect. Great! >> >> How about strings? Any suggestions for boosting that hugely? >> >> Bob >> >> > > > > -- > Robert M. Hanson > Larson-Anderson Professor of Chemistry > Chair, Department of Chemistry > St. Olaf College > Northfield, MN > http://www.stolaf.edu/people/hansonr > > > If nature does not answer first what we want, > it is better to take what answer we get. > > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > > > ------------------------------------------------------------------------------ > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Department of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users