this thread is an offshoot of another (thread269-269889 Java, is it better than c++ or c# ?)
in it, myenigmaself wrote:
"a lot of the problems (of speed) occur when people don't know how to harness the power of Java. An example is that people never encapsulate Strings in StringBuffers. This greatly improves performance because it decreases the number of times you have to allocate memory... it's the little things like this that only come with experience that make a program run efficiently."
Ok, so I knew about StringBuffers... but what else am I missing? Does anyone else know of common mistakes people make that slow things down? If so, please post!
in it, myenigmaself wrote:
"a lot of the problems (of speed) occur when people don't know how to harness the power of Java. An example is that people never encapsulate Strings in StringBuffers. This greatly improves performance because it decreases the number of times you have to allocate memory... it's the little things like this that only come with experience that make a program run efficiently."
Ok, so I knew about StringBuffers... but what else am I missing? Does anyone else know of common mistakes people make that slow things down? If so, please post!