[New-bugs-announce] [issue21644] Optimize bytearray(int) constructor to use calloc()

STINNER Victor report at bugs.python.org
Mon Jun 2 22:25:58 CEST 2014


New submission from STINNER Victor:

Python 3.5 has a new PyObject_Calloc() function which can be used for fast memory allocation of memory block initialized with zeros.

I already implemented an optimization, but Stefan Krah found issues in my change:
http://bugs.python.org/issue21233#msg217826

I reverted the optimization in the changeset dff6b4b61cac.

----------
messages: 219632
nosy: haypo, skrah
priority: normal
severity: normal
status: open
title: Optimize bytearray(int) constructor to use calloc()
type: performance
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21644>
_______________________________________


More information about the New-bugs-announce mailing list