How fast is getline in C++?
CRANK

A standard way to read a text file in C++ is to call the getline function. To iterate over all lines in file and sum up their length, you might do as follows: while(getline(is, line)) { x += line.size(); } How fast is this? On a Skylake processor with a recent GNU GCC compiler, it … Continue reading How fast is getline in C++?

lemire.me
Related Topics: C++ C (programming language)