I have a Python script that process a huge text file (with around 4 millon lines) and writes the data into two separate files.
I have added a print statement, which outputs a string for every line for debugging. I want to know how bad it could be from the performance perspective?
If it is going to very bad, I can remove the debugging line.
Edit
It turns out that having a print statement for every line in a file with 4 million lines is increasing the time way too much.
timeitdocs.python.org/2/library/timeit.htmlitemto a socket queue : the program will finish the writes first, and the console from the socket will print the output with a lag.