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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21644>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to