Re:How fast can a BufferedReader read lines in Java?
by zlynx on Saturday July 27, 2019 @06:01PM
(#20544488)
I haven't looked recently but several years ago I was shocked to discover the GNU libstdc++ didn't use strchr or memchr. It used a hand-coded for loop because it was a template for various kinds of character. There was no specialization for 8-bit char, either.
As a result std::string was disgustingly slow compared to C code.
As a result std::string was disgustingly slow compared to C code.