]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91539: Small performance improvement of urrlib.request.getproxies_environment...
authorRaphaël Marinier <raphael.marinier@gmail.com>
Mon, 15 Jan 2024 23:45:01 +0000 (00:45 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2024 23:45:01 +0000 (15:45 -0800)
commit5094690efd7f663f2e0c1a2a633d3344a0557095
treefb0e3437f68110ddc5d36c4480c77a528e86788d
parent4f24b92aa0677ed5310dd2d1572b55f4e30c88ef
gh-91539: Small performance improvement of urrlib.request.getproxies_environment() (#108771)

 Small performance improvement of getproxies_environment() when there are many environment variables. In a benchmark with 5k environment variables not related to proxies, and 5 specifying proxies, we get a 10% walltime improvement.
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2023-09-01-15-33-18.gh-issue-91539.xoNLEI.rst [new file with mode: 0644]