From 57df177f0f11ff3b8f5355e1c2bcfa4d436f85df Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 20 Oct 2021 01:45:06 +0200 Subject: [PATCH] PEP 670: remove duplicated paragraph --- pep-0670.rst | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/pep-0670.rst b/pep-0670.rst index 9a8a8e8edd6..030e239ed24 100644 --- a/pep-0670.rst +++ b/pep-0670.rst @@ -123,19 +123,6 @@ especially useful on LTO+PGO builds which heavily inlines code: see ``__declspec(noinline)`` with MSC. -Convert macros and static inline functions to regular functions ---------------------------------------------------------------- - -There are projects embedding Python or using Python which cannot use -macros and static inline functions. For example, projects using -programming languages other than C and C++. There are also projects -written in C which make the deliberate choice of only getting -``libpython`` symbols (functions and variables). - -Converting macros and static inline functions to regular functions make -these functions accessible to these projects. - - Specification ============= @@ -158,12 +145,17 @@ The following macros should not be converted: Convert static inline functions to regular functions ---------------------------------------------------- -Converting static inline functions to regular functions give access to -these functions for projects which cannot use macros and static inline -functions. +There are projects embedding Python or using Python which cannot use +macros and static inline functions. For example, projects using +programming languages other than C and C++. There are also projects +written in C which make the deliberate choice of only getting +``libpython`` symbols (functions and variables). + +Converting static inline functions to regular functions makes these +regular functions accessible to these projects. The performance impact of such conversion should be measured with -benchmarks. If there is a significant slowdown, there should be a good +benchmarks. If there is a significant slowdown, there should be a good reason to do the conversion. One reason can be hiding implementation details.