PEP 670: remove duplicated paragraph (#2118)
This commit is contained in:
parent
157ab6ee10
commit
ccb8ee3cc3
24
pep-0670.rst
24
pep-0670.rst
|
@ -123,19 +123,6 @@ especially useful on LTO+PGO builds which heavily inlines code: see
|
||||||
``__declspec(noinline)`` with MSC.
|
``__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
|
Specification
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
@ -158,9 +145,14 @@ The following macros should not be converted:
|
||||||
Convert static inline functions to regular functions
|
Convert static inline functions to regular functions
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
|
|
||||||
Converting static inline functions to regular functions give access to
|
There are projects embedding Python or using Python which cannot use
|
||||||
these functions for projects which cannot use macros and static inline
|
macros and static inline functions. For example, projects using
|
||||||
functions.
|
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
|
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
|
||||||
|
|
Loading…
Reference in New Issue