Why is BufferedReader read() much slower than readLine()?
The important thing when analyzing performance is to have a valid benchmark before you start. So let’s start with a simple JMH benchmark that shows what our expected performance after warmup would be. One thing we have to consider is that since modern operating systems like to cache file data that is accessed regularly we … Read more