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.

classification
Title: Argument Clinic: use PyTuple_GET_SIZE?
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: georg.brandl, larry
Priority: normal Keywords:

Created on 2014-01-13 06:56 by georg.brandl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg208007 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-01-13 06:56
In the presence of [ ] , clinic generates PyTuple_Size() calls.

Since argument tuples always are tuples, you can use the macro form PyTuple_GET_SIZE() to speed it up.
msg208243 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-16 07:17
I suppose so.  It would be hard to measure the resulting speedup.  But I guess we get it for free.

I made the change in my "simple expressions" branch.  So it'll go in when that does.
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64433
2014-01-16 07:17:46larrysetstatus: open -> closed
resolution: fixed
messages: + msg208243

stage: resolved
2014-01-13 06:56:42georg.brandlcreate