PEP 683: Update the Perf Regression With the Final Benchmark Results (#3519)

This commit is contained in:
Eric Snow 2023-11-27 19:44:40 -07:00 committed by GitHub
parent 6aeaba7f23
commit 12e276545d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 8 deletions

View File

@ -230,20 +230,17 @@ those described above in `Motivation`_, reflect this improvement.
Performance Performance
----------- -----------
A naive implementation shows `a 4% slowdown`_. We have demonstrated A naive implementation shows `a 2% slowdown`_ (3% with MSVC).
a return to ~performance-neutral~ with a handful of basic mitigations We have demonstrated a return to ~performance-neutral~ with a handful
applied. See the `mitigations`_ section below. of basic mitigations applied. See the `mitigations`_ section below.
.. _a 2% slowdown: https://github.com/python/cpython/pull/19474#issuecomment-1502245844
On the positive side, immortal objects save a significant amount of On the positive side, immortal objects save a significant amount of
memory when used `with a pre-fork model <Facebook>`_. Also, immortal memory when used `with a pre-fork model <Facebook>`_. Also, immortal
objects provide opportunities for specialization in the eval loop that objects provide opportunities for specialization in the eval loop that
would improve performance. would improve performance.
.. _a 4% slowdown: https://github.com/python/cpython/pull/19474#issuecomment-1032944709
TODO: Update the performance impact for the latest branch
(both for GCC and for clang).
Backward Compatibility Backward Compatibility
---------------------- ----------------------