Author pitrou
Recipients Aaron.Sherman, giampaolo.rodola, gregory.p.smith, neologix, pitrou, vstinner
Date 2011-03-02.12:38:21
SpamBayes Score 0.0167359
Marked as misclassified No
Message-id <1299069504.06.0.161687172641.issue11314@psf.upfronthosting.co.za>
In-reply-to
Content
Interestingly, reducing from the max open file descriptors from 8192 (my default) to 512 halves the runtime and solves the regression:

$ ulimit -n
512
$ ./python bench_subprocess.py 
pid: 31631
Time: 4903.8 ms


So, even though implemented in C, the file descriptor closing logic is still quite costly!
History
Date User Action Args
2011-03-02 12:38:24pitrousetrecipients: + pitrou, gregory.p.smith, vstinner, giampaolo.rodola, neologix, Aaron.Sherman
2011-03-02 12:38:24pitrousetmessageid: <1299069504.06.0.161687172641.issue11314@psf.upfronthosting.co.za>
2011-03-02 12:38:21pitroulinkissue11314 messages
2011-03-02 12:38:21pitroucreate