summaryrefslogtreecommitdiffstats
path: root/Python/thread_nt.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-07 12:01:09 (GMT)
committerGitHub <noreply@github.com>2022-07-07 12:01:09 (GMT)
commit65c431685b40583b877da573e41514d63217815d (patch)
tree60d6cf81492f08025e5d6ff2e481153a3a8824c3 /Python/thread_nt.h
parent421c4b025583df9396dbd6b1e0e90d4a8b6d083f (diff)
downloadcpython-65c431685b40583b877da573e41514d63217815d.zip
cpython-65c431685b40583b877da573e41514d63217815d.tar.gz
cpython-65c431685b40583b877da573e41514d63217815d.tar.bz2
gh-93910: Fix enum performance regression (GH-94614)
This removes the performance regression in 3.11, **at the expense of not fixing the "bug" that allows accessing values from values** (e.g. `Color.RED.BLUE`). Using the benchmark @markshannon [presented](https://github.com/python/cpython/issues/93910GH-issuecomment-1165503032), the results are: | Version | Enum | Fast enum | Normal class | | --- | --- | --- | --- | | 3.10 | 2.04 | 0.59 | 0.56 | | 3.11 | 2.78 | 0.31 | 0.15 | | This PR | 1.30 | 0.32 | 0.16 | I share this mostly as information about the source of the regression, as this may be useful. It may be that the lower-risk approach for the beta is just to revert to a previously-known working state. (cherry picked from commit ed136b96737fdbeff864079d12904cb962c6cce5) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Diffstat (limited to 'Python/thread_nt.h')
0 files changed, 0 insertions, 0 deletions