Re: [Jmol-developers] concatenating strings in Java

2009-11-11 Thread Robert Hanson
Yes, that's an important lesson. I learned it some years ago and have worked hard to use StringBuffer as much as possible in Jmol in situations where a lot of string processing is to be done within a loop. But I still find a few of those in the code now and then. So it's a continuing issue. The re

[Jmol-developers] concatenating strings in Java

2009-11-10 Thread Angel Herráez
Dear developers, You probably know this already, but just in case, I thought better to forward it: --- Forwarded message follows --- Subject: never use + to join lots of strings While well known, this post nicely shows why concatenating lots of string shouldn't be using the + operator