3 ms·
Alternatively if you took his class then you you probably learned that BufferedReader is not the most performant way to read lines from IO and probably learned
by zaphar 7y ago
Alternatively if you took his class then you you probably learned that BufferedReader is not the most performant way to read lines from IO and probably learned the correct alternatives.
If you work at some of the places java commonly gets used then you'll see BufferedReader all over the place. This article isn't a critique of Java. It's a warning about BufferedReader. If you do high performance java you'll be hiring exceptional java engineers who will not be using BufferedReader and you won't have this problem. If you are a run of the mill java shop you probably don't work with code that isn't using BufferedReader and this article is for you when you are debugging a pathological performance problem that suddenly reared it's head in production.
This professor seems like a good one to me.
- tom_mellior 7y agoIf the article's point was that better alternatives exist, it should have made that point by mentioning those better alternatives and ideally benchmarking them as well. I agree with others that this particular article comes across as very lazy and not up to Lemire's usual standard.
- gpderetta 7y agoThat's not the point of the article. The point of the article is that many programs are in fact CPU bound, contrary to the often repeated claims and you do actually need to do optimization work to saturate your IO; even in lanuages considered fast, like c++ and java, the straightforward implementation is often suboptimal.
- tom_mellior 7y agoAgreed. Though if the author really has existing materials about faster alternatives, it's still strange not to mention them. The article is strictly speaking about one way of doing I/O (or rather, an abstraction often involved in I/O), but the author should know that many will read it as saying "all I/O in Java is always slow".
- jnordwick 7y agoHe's just bitching for the sake of bitching. This is entirely a low information post. I can only evaluate him on what I just read, and it isn't very good.