[issue32408] Performance regression in urllib.proxy_bypass_environment

2021-03-31 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, it's #39057 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue32408] Performance regression in urllib.proxy_bypass_environment

2021-03-31 Thread Xiang Zhang
Xiang Zhang added the comment: I think this issue has already been solved by #39507. The time difference is: before: time python3 -c 'import urllib.request; urllib.request.proxy_bypass_environment("1.1.1.1")' real0m0.912s user0m0.902s sys 0m0.010s after: time python3 -c 'impor

[issue32408] Performance regression in urllib.proxy_bypass_environment

2017-12-24 Thread Xiang Zhang
Xiang Zhang added the comment: Okay, the real performance is: time python2 -c 'import urllib; urllib.proxy_bypass_environment("1.1.1.1")' real0m0.661s user0m0.654s sys 0m0.007s I compile it with a wrong option with the specific GCC version. But still really slow comparing to befo

[issue32408] Performance regression in urllib.proxy_bypass_environment

2017-12-21 Thread Xiang Zhang
New submission from Xiang Zhang : Recently we update our environment from Python2.7.5 to Python2.7.13. Then one process's CPU usage grow from 15% to 70%. The cause is urllib.proxy_bypass_environment, the commit I wrote in #26864. Our environments get a no_proxy environment variable which conta