Skip to content

Commit 562c391

Browse files
committed
feat: 🎸 add code review
1 parent 5cbed59 commit 562c391

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎getting-started/setup-building.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,18 @@ still build properly).
240240
Optimization
241241
''''''''''''
242242

243-
To get an optimized build of Python, ``configure --enable-optimizations --with-lto``. This sets the default make targets up to enable Profile Guided Optimization (PGO) and may be used to auto-enable Link Time Optimization (LTO) on some platforms. Note that configuration including this option takes time to configure. If you want to learn more about these options, please see `Configure > Performance options <https://docs.python.org/3/using/configure.html?highlight=lto#performance-options>`_ ::
243+
If you are trying to improve the performance of Python, you will probably want
244+
to use an optimized build of CPython. It can take a lot longer to build CPython
245+
with optimizations enabled, and it's usually not necessary to do so. However,
246+
it's essential if you want accurate benchmark results for a proposed performance
247+
optimization. To get an optimized build of Python,
248+
``configure --enable-optimizations --with-lto``.
249+
This sets the default make targets up to enable Profile Guided Optimization(PGO)
250+
and may be used to auto-enable Link Time Optimization (LTO) on some platforms.
251+
If you want to learn more about these options,
252+
please see :ref:`Configure options <python:configure-options>`.
253+
254+
.. code:: console
244255
245256
$ ./configure --enable-optimizations --with-lto
246257

0 commit comments

Comments
 (0)