This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients davin, dtasev, sbt, serhiy.storchaka
Date 2017-07-13.15:43:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499960607.8.0.26985650288.issue30919@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-07-13 15:43:27serhiy.storchakasetrecipients: + serhiy.storchaka, sbt, davin, dtasev
2017-07-13 15:43:27serhiy.storchakasetmessageid: <1499960607.8.0.26985650288.issue30919@psf.upfronthosting.co.za>
2017-07-13 15:43:27serhiy.storchakalinkissue30919 messages
2017-07-13 15:43:27serhiy.storchakacreate