...1 percent of the program becomes three times faster. Here's a third approach that I used to make my code run faster, back in the days of JDK 1.3. Instead of creating an empty StringBuffer, I sized it to the number of required characters...
http://java.sun.com/developer/technicalArticles/Interviews/devinsight_1/
...1 percent of the program becomes three times faster. Here's a third approach that I used to make my code run faster, back in the days of JDK 1.3. Instead of creating an empty StringBuffer, I sized it to the number of required characters...
http://java.sun.com/developer/technicalArticles/Interviews/devinsight_1/