Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

Thanks.  I don't really know enough about compilers and required-vs-optional 
C99 semantics to know whether these changes are safe.  These are very old APIs 
and are used throughout the entire Python ecosystem.  It would pay to be 
somewhat cautious.   

The whole C-API project is predicated on giving a 2x speed-up in exchange for 
destabilizing changes.  These cross-module inline function-for-macro swaps 
aren't aligned with that goal.  At the very best, the swaps will be performance 
neutral.  At worst, they will invisibly degrade a huge swath of code, someone 
of which is finely-tuned (people generally only use PyTuple_GET_ITEM() in 
places where they want better performance than the existing function based 
alternative)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35199>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to