Hacker News new | past | comments | ask | show | jobs | submit login
Why is printing to stdout so slow? (stackoverflow.com)
6 points by _fsbf on Oct 28, 2012 | hide | past | favorite | 2 comments



Reminds me of the guy with a nvidia card who needed to redirect his compiler output away from the terminal because printing the output slowed down the compiler so much.


This is a general problem with terminal I/O, not just a Python thing. I've noticed many times that C programs that write thousands of lines of debug output to the terminal run a whole lot faster when you redirect the output to a file.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: