Message129888
| Author |
vstinner |
| Recipients |
Aaron.Sherman, giampaolo.rodola, gregory.p.smith, neologix, pitrou, vstinner |
| Date |
2011年03月02日.13:00:47 |
| SpamBayes Score |
0.002936644 |
| Marked as misclassified |
No |
| Message-id |
<1299070848.82.0.768547963896.issue11314@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> os.popen is 41% is slower than subprocess: I suppose that it
> is the usage of stdout=PIPE (creation of the pipe) which make
> it slower
Oh no, it's because os.popen() calls subprocess.Popen() with shell=True: the overhead is the shell. Nothing wrong here. |
|