-
-
Notifications
You must be signed in to change notification settings - Fork 106
Use istr as keys in CIMultiDict #1097
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
Conversation
CodSpeed Performance ReportMerging #1097 will degrade performances by 54.53%Comparing Summary
Benchmarks breakdown
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1097 +/- ##
==========================================
+ Coverage 92.86% 92.96% +0.09%
==========================================
Files 44 44
Lines 5088 5188 +100
Branches 385 397 +12
==========================================
+ Hits 4725 4823 +98
Misses 95 95
- Partials 268 270 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The regression is ok |
I think it’s fine as it’s a rare case. will test on production later today |
Testing
|
Tested on production and as above. All seems to be working as expected. Looked through the code changes and didn't see any issues stand out |
Co-authored-by: J. Nick Koston <[email protected]>
Thanks for the review, @bdraco |
Fixes leak 1 from #1131 (comment) (`IStr_New` path) see #1131 (comment) #1131 (comment) #1131 (comment) This also seems to fix the perf regression in popitem from #1097 (comment) https://codspeed.io/aio-libs/multidict/branches/istr-keys introduced #1097 fixes #1131 --------- Co-authored-by: Andrew Svetlov <[email protected]>
Currently, keys of CIMultiDict are stored as-is, e.g.
CIMultiDict({'k': 'v'})
hasstr
key.But it is slightly incorrect, CIMultiDict should store
istr
keys.The PR fixes it.