Issue 20234: Argument Clinic: use PyTuple_GET_SIZE? (original) (raw)
Issue20234
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) * ![]() |
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) * ![]() |
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:56 | admin | set | github: 64433 |
2014-01-16 07:17:46 | larry | set | status: open -> closedresolution: fixedmessages: + stage: resolved |
2014-01-13 06:56:42 | georg.brandl | create |