Sorry I couldn’t receive your message (probably something wrong in my mail configuration) but I saw the message from digest.
I created self contained program for this example. I am using “writelines”
(devpy) emreyavuz:tmp emreyavuz$ python3 test-writer
Time has been spend for copying data 28 secs
(devpy) emreyavuz:tmp emreyavuz$ pypy3 test-writer
Time has been spend for copying data 118 secs