]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35941: Fix performance regression in SSL certificate code (GH-12610)
authorSteve Dower <steve.dower@python.org>
Tue, 10 Sep 2019 08:46:40 +0000 (01:46 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 08:46:40 +0000 (01:46 -0700)
commitb4fb2c29f34c322855ab6be72b491930cf508f64
tree3f48d49a09db85e7028fd3147441a8b189ca5569
parent64947dc81a94692fa8ed21c2199a19a0188150ad
bpo-35941: Fix performance regression in SSL certificate code (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 <christian@python.org>
Lib/test/test_ssl.py
Modules/_ssl.c