Skip to content

[3.8] bpo-35941: Fix performance regression in SSL certificate code (GH-12610)#15803

Merged
zooba merged 1 commit intopython:3.8from
zooba:bpo-35941-3.8
Sep 10, 2019
Merged

[3.8] bpo-35941: Fix performance regression in SSL certificate code (GH-12610)#15803
zooba merged 1 commit intopython:3.8from
zooba:bpo-35941-3.8

Conversation

@zooba
Copy link
Member

@zooba zooba commented Sep 9, 2019

Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations

Signed-off-by: Christian Heimes [email protected]

https://bugs.python.org/issue35941

…GH-12610)

Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations

Signed-off-by: Christian Heimes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants