Message298291
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. | |
| Date | User | Action | Args | | 2017-07-13 15:43:27 | serhiy.storchaka | set | recipients: + serhiy.storchaka, sbt, davin, dtasev | | 2017-07-13 15:43:27 | serhiy.storchaka | set | messageid: <1499960607.8.0.26985650288.issue30919@psf.upfronthosting.co.za> | | 2017-07-13 15:43:27 | serhiy.storchaka | link | issue30919 messages | | 2017-07-13 15:43:27 | serhiy.storchaka | create | | |