Lambda Expressions in Java 8 – DZone

https://dzone.com/articles/lambda-expression-in-java8?edition=334865&utm_source=Daily%20Digest&utm_medium=email&utm_campaign=Daily%20Digest%202017-11-12

Advertisements

11 Simple Java Performance Tuning Tips – DZone Java I was particularly intrigued by reason #10:

10. Use Apache Commons StringUtils.Replace Instead of String.replace
In general, the String.replace method works fine and is pretty efficient, especially if you’re using Java 9. But if your application requires a lot of replace operations and you haven’t updated to the newest Java version, it still makes sense to check for faster and more efficient alternatives.

One candidate is Apache Commons Lang’s StringUtils.replace method. As Lukas Eder described in one of his recent blog posts, it dramatically outperforms Java 8’s String.replace method.

https://dzone.com/articles/11-simple-java-performance-tuning-tips?edition=334833&utm_source=Daily%20Digest&utm_medium=email&utm_campaign=Daily%20Digest%202017-11-03