Aug-22-2022, 05:08 PM
(Aug-22-2022, 04:52 PM)dgrunwal Wrote: I wanted to see if there was a simple way to expedite processing the sys.stdout.writelines portionIf you send 20MB to
sys.stdout
, the time that it takes depends on what sys.stdout actually is. If you are writing to a terminal, it will take a lot of time. On the other hand if sys.stdout is a file in RAM, it will take very little time. There are many other options such as a pipe a socket or whatever. I'm not sure the performance issue is on the Python side.