Skip to content
Snippets Groups Projects
Select Git revision
  • 65c431685b40583b877da573e41514d63217815d
  • main default protected
  • 3.10
  • 3.11
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
34 results

cpython

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Miss Islington (bot) authored and GitHub committed
    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 ed136b96)
    
    Co-authored-by: default avatarMichael Droettboom <mdboom@gmail.com>
    65c43168
    History
    Name Last commit Last update