Conversation
Enumerating a enum and accessing all the .value is not performant. Switching to a dict is significantly faster
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #9169 +/- ##
=======================================
Coverage 98.33% 98.33%
=======================================
Files 107 107
Lines 34644 34645 +1
Branches 4115 4116 +1
=======================================
+ Hits 34066 34067 +1
Misses 408 408
Partials 170 170
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.10: 💚 backport PR created✅ Backport PR branch: Backported as #9222 🤖 @patchback |
(cherry picked from commit fce4f8e)
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #9223 🤖 @patchback |
(cherry picked from commit fce4f8e)
What do these changes do?
Enumerating a enum and accessing all the .value is not performant. Switching to a pre-built dict is significantly faster
Are there changes in behavior for the user?
no
Is it a substantial burden for the maintainers to support this?
no
related issue #2779
before

after
