[Python-Dev] Re: PEP 670: Convert macros to functions in the Python C API

2021-11-23 Thread Guido van Rossum
On Tue, Nov 23, 2021 at 3:15 PM Antoine Pitrou wrote: > On Tue, 23 Nov 2021 18:00:28 +0100 > Victor Stinner wrote: > > > I didn't run benchmarks on Python built in release mode, since gcc -O3 > > with LTO and PGO should inline all static inline functions and I don't > > expect any difference

[Python-Dev] Re: PEP 670: Convert macros to functions in the Python C API

2021-11-23 Thread Antoine Pitrou
On Tue, 23 Nov 2021 18:00:28 +0100 Victor Stinner wrote: > > From what I understood, debug builds are mostly used by Python core > developers to develop Python and so an important use case for > performance is running the Python test suite. > > (1) Replacing macros with static inline functions

[Python-Dev] Re: PEP 670: Convert macros to functions in the Python C API

2021-11-23 Thread Victor Stinner
Hi Antoine, I completed the PEP: https://python.github.io/peps/pep-0670/ * Add benchmarks on a Python debug build: (1) macros vs static inline functions and (2) gcc -O0 vs gcc -Og * Elaborate the Debug Build section * Explain why the "keep macros" idea was rejected Diff:

[Python-Dev] Re: Do we need to remove everything that's deprecated?

2021-11-23 Thread Petr Viktorin
On 19. 11. 21 22:15, Mike Miller wrote: This is the point where the pricey support contract comes in.  Would give options to those who need it and provide some revenue. Not really; for a pricey support contract would need to freeze things for even longer -- *and* make it an actual contract