PEP 670: remove duplicated paragraph (#2118)
This commit is contained in:
parent
157ab6ee10
commit
ccb8ee3cc3
26
pep-0670.rst
26
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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue