Message367186
| Author |
vstinner |
| Recipients |
koobs, vstinner |
| Date |
2020年04月24日.10:14:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1587723299.84.0.566094347273.issue38061@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Thanks Ed Maste, Conrad Meyer, Kyle Evans and Kubilay Kocak!
I ran a benchmark:
vstinner@freebsd$ env/bin/python -m pyperf command -v -- ./python -c 'import subprocess, sys; args=[sys.executable, "-sS", "-c", "pass"]; subprocess.run(args)'
The optimization made subprocess almost 4x faster on FreeBSD!
vstinner@freebsd$ env/bin/python -m pyperf compare_to ref.json closefrom.json
Mean +- std dev: [ref] 176 ms +- 1 ms -> [closefrom] 46.6 ms +- 1.2 ms: 3.77x faster (-74%)
129 ms were wasted in calling 229 284 times close(fd)! |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年04月24日 10:14:59 | vstinner | set | recipients:
+ vstinner, koobs |
| 2020年04月24日 10:14:59 | vstinner | set | messageid: <1587723299.84.0.566094347273.issue38061@roundup.psfhosted.org> |
| 2020年04月24日 10:14:59 | vstinner | link | issue38061 messages |
| 2020年04月24日 10:14:59 | vstinner | create |
|