-
-
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
Only construct the allowed_methods
set
once for a StaticResource
#9911
Conversation
allowed_methods
set once for a StaticResource
allowed_methods
set
once for a StaticResource
CodSpeed Performance ReportMerging #9911 will not alter performanceComparing Summary
|
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #9912 🤖 @patchback |
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #9913 🤖 @patchback |
…s` `set` once for a `StaticResource` (#9912) Co-authored-by: J. Nick Koston <[email protected]>
…s` `set` once for a `StaticResource` (#9913) Co-authored-by: J. Nick Koston <[email protected]>
Going to have to revert this since |
#9911 optimized this to only build the set once, however ``aiohttp-cors`` relies on being able to mutate this at runtime https://github.com/aio-libs/aiohttp-cors/blob/38c6c17bffc805e46baccd7be1b4fd8c69d95dc3/aiohttp_cors/urldispatcher_router_adapter.py#L187
noticed in #9899 (comment)
Likely to have minimal performance improvement besides saving some memory churn so I didn't call it in out the changelog