Slow performance when merging cookies #2874
Answered
by
zanieb
gyula-lakatos
asked this question in
Potential Issue
Answered by
zanieb
Oct 2, 2023
Replies: 1 comment 5 replies
|
Thanks for the detailed post! Can you reproduce by calling |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Wow that implementation in the standard library is kind of insane. Your diagnosis looks correct without me investigating further. I'd suggest a bug report upstream.
I imagine we can avoid calling the
__bool__and__iter__methods in the meantime by checking the length explicitly or something.Do you have a simple MRE that we can use to check for a performance improvement?