Stefan Krah added the comment:
To my surprise, this line is 10% faster with a freelist:
./python -m timeit -s "import array; a = array.array('B', [0]*100); m =
memoryview(a)" "m[30:40]"
I think the reason is that PyObject_GC_NewVar() is quite slow.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19577>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com