Message240858
> avoid memset in small tuple creation
I don't understand this title because there is no call to memset() in the patch.
Can you try to modify PyTuple_New() to use memset() instead of a dummy loop?
Adding a _PyTuple_New() which doesn't initialize the memory doesn't seem safe to me.
You may try to allocate the tuple with PyObject_Calloc(), but when I tried on other types, it was slower than PyObject_Malloc() for sizes smaller than 1 MB. |
|
Date |
User |
Action |
Args |
2015-04-14 08:10:38 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, jtaylor, serhiy.storchaka |
2015-04-14 08:10:38 | vstinner | set | messageid: <1428999038.24.0.575670444867.issue21148@psf.upfronthosting.co.za> |
2015-04-14 08:10:38 | vstinner | link | issue21148 messages |
2015-04-14 08:10:38 | vstinner | create | |
|