Morsel.__init__
loops reserved values and could be replaced with a simple dict update
#126156
Labels
performance
Performance or resource usage
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
cpython/Lib/http/cookies.py
Line 276 in 224c370
Backstory:
aio-libs/aiohttp#9594
Processing cookies is a significant part of the
aiohttp
request time, and some requesters have to create manyMorsel
objects because they have a lot of cookies on every request.There are few places that can be optimized in
http.cookies
This one is low hanging fruit
Linked PRs
Morsel
objects #126157The text was updated successfully, but these errors were encountered: