[Bug libstdc++/45574] cin.getline() is extremely slow

paolo dot carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 9 10:42:00 GMT 2010



------- Comment #17 from paolo dot carlini at oracle dot com  2010-09-09 10:42 -------
At some point I tried quickly replacing some getc, did notice an improvement of
course, but of the order of magnitude I mentioned. Worth further investigating
sure (and simple, just replace in stdio_sync_ and measure, on Linux). In terms
of the C++ Standard, I think that C++98 would allow essentially *anything*, not
so C++0x, and within C++98 too I'm afraid we can break code making already some
assumptions about the thread safety, which we don't spell out anywhere as impl
def behavior, still...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45574



More information about the Gcc-bugs mailing list