[issue22030] Use calloc in set resizing
STINNER Victor
report at bugs.python.org
Tue Jul 22 09:42:58 CEST 2014
STINNER Victor added the comment:
Be careful. In my tests, calloc() was slower than malloc() + memset() for
memory blocks smaller than 1 MB. Calloc() can be interesting if only a few
pages (4096 bytes) are modified.
You must provide benchmarks.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22030>
_______________________________________
More information about the Python-bugs-list
mailing list