Continuing our series of articles concerning proposed practices while working with the Java programming language, we are going to talk about String performance tuning. We will focus on how to handle String creation, String alteration and String matching operations efficiently.
Furthermore we will provide our own implementations of the most commonly used algorithms for Exact String Matching. Many of these algorithms can achieve far more superior performance compared to the naive approach for exact String matching available with the Java Development Kit.
This article concludes with a performance comparison between the aforementioned Exact String Matching algorithms.
Read more at :
Java Code Geeks: Java Best Practices – String performance and Exact String Matching