This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients jtaylor, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2015-04-14.08:10:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428999038.24.0.575670444867.issue21148@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2015-04-14 08:10:38vstinnersetrecipients: + vstinner, rhettinger, pitrou, jtaylor, serhiy.storchaka
2015-04-14 08:10:38vstinnersetmessageid: <1428999038.24.0.575670444867.issue21148@psf.upfronthosting.co.za>
2015-04-14 08:10:38vstinnerlinkissue21148 messages
2015-04-14 08:10:38vstinnercreate