Serhiy Storchaka added the comment: It can be significantly sped up if replace the writing loop with
if size: os.lseek(self.fd, size, 0) os.write(self.fd, b'') os.lseek(self.fd, 0, 0) or just with os.truncate(self.fd, size) (not sure the latter always works). But instantiating an open Arena will still be slower than in 2.7. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30919> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com