-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up starting compression #9169
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)
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
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