Why is reading lines from stdin much slower in C++ than Python?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping
--
Chapters
00:00 Question
02:58 Accepted answer (Score 1899)
04:59 Answer 2 (Score 212)
06:02 Answer 3 (Score 209)
13:19 Answer 4 (Score 109)
13:54 Thank you
--
Full question
https://stackoverflow.com/questions/9371...
Accepted answer links:
[sync_with_stdio]: http://en.cppreference.com/w/cpp/io/ios_...
Answer 2 links:
[dtruss/strace]: http://en.wikipedia.org/wiki/Strace
Answer 3 links:
['Useless Use Of Cat']: https://en.wikipedia.org/wiki/Cat_(Unix)...
Answer 4 links:
[Python]: http://en.wikipedia.org/wiki/Python_%28p...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #c++ #benchmarking #iostream #getline
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping
--
Chapters
00:00 Question
02:58 Accepted answer (Score 1899)
04:59 Answer 2 (Score 212)
06:02 Answer 3 (Score 209)
13:19 Answer 4 (Score 109)
13:54 Thank you
--
Full question
https://stackoverflow.com/questions/9371...
Accepted answer links:
[sync_with_stdio]: http://en.cppreference.com/w/cpp/io/ios_...
Answer 2 links:
[dtruss/strace]: http://en.wikipedia.org/wiki/Strace
Answer 3 links:
['Useless Use Of Cat']: https://en.wikipedia.org/wiki/Cat_(Unix)...
Answer 4 links:
[Python]: http://en.wikipedia.org/wiki/Python_%28p...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #c++ #benchmarking #iostream #getline
#avk47