[issue30919] Shared Array Memory Allocation Regression
Serhiy Storchaka
report at bugs.python.org
Thu Jul 13 11:43:27 EDT 2017
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 <report at bugs.python.org>
<http://bugs.python.org/issue30919>
_______________________________________
More information about the Python-bugs-list
mailing list