Benchmarking JDK String.replace() vs Apache Commons StringUtils.replace()
What’s better? Using the JDK’s String.replace() or something like Apache Commons Lang’s Apache Commons Lang’s StringUtils.replace()? In this article, I’ll compare the two, first in a profiling session using Java Mission Control (JMC), then in a benchmark using JMH, and we’ll see that Java 9 heavily improved things in this area. Profiling using JMC In … Continue reading Benchmarking JDK String.replace() vs Apache Commons StringUtils.replace()
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed