Why is istream/ostream slow
At 50:40 of
http://channel9.msdn.com/Events/GoingNative/2013/Writing-Quick-Code-in-Cpp-Quickly
Andrei Alexandrescu makes a joke about how not efficient/slow istream is.
I had an issue in the past with ostream being slow and fwrite being
significantly faster (reducing many seconds when running the main loop
once) but I never understood why nor looked into it.
What makes istream and ostream slow in C++? or at least slow compared to
other things (like fread/fget, fwrite) which would equally satisfied the
needs.
No comments:
Post a Comment