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 ztane
Recipients serhiy.storchaka, vstinner, yselivanov, ztane
Date 2016-08-12.07:38:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1470987512.66.0.620110585299.issue27128@psf.upfronthosting.co.za>
In-reply-to
Content
About "I hesitate between the C types "int" and "Py_ssize_t" for nargs. I read once that using "int" can cause performance issues on a loop using "i++" and "data[i]" because the compiler has to handle integer overflow of the int type."

This is true because of -fwrapv, but I believe it is true also for Py_ssize_t which is also of signed type. However, there would be a speed-up achievable by disabling -fwrapv, because only then the i++; data[i] can be safely optimized into *(++data)
History
Date User Action Args
2016-08-12 07:38:32ztanesetrecipients: + ztane, vstinner, serhiy.storchaka, yselivanov
2016-08-12 07:38:32ztanesetmessageid: <1470987512.66.0.620110585299.issue27128@psf.upfronthosting.co.za>
2016-08-12 07:38:32ztanelinkissue27128 messages
2016-08-12 07:38:32ztanecreate