[issue20234] Argument Clinic: use PyTuple_GET_SIZE?

2014-01-15 Thread Larry Hastings
Larry Hastings added the comment: 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. -- resolution: - fixed stage: - committed/rejected status: open -

[issue20234] Argument Clinic: use PyTuple_GET_SIZE?

2014-01-12 Thread Georg Brandl
New submission from Georg Brandl: 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. -- assignee: larry messages: 208007 nosy: georg.brandl, larry priority: normal