Message129321
| Author |
pitrou |
| Recipients |
Aaron.Sherman, gregory.p.smith, pitrou, vstinner |
| Date |
2011年02月24日.23:44:44 |
| SpamBayes Score |
0.00011715955 |
| Marked as misclassified |
No |
| Message-id |
<1298591085.7.0.176262469006.issue11314@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think your analysis is wrong. These mmap() calls are for anonymous memory, most likely they are emitted by the libc's malloc() to get some memory from the kernel. In other words they will be blazingly fast.
I would suggest you try to dig deeper. For example, how much CPU time does the parent process take (excluding its children).
Of course, I also disagree with the idea that spawning "exit 0" subprocesses is a performance critical operation ;) Therefore, it would be useful to know the absolute overhead difference (in milliseconds) between subprocess and os.popen(), to decide if there is really a problem. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年02月24日 23:44:45 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, vstinner, Aaron.Sherman |
| 2011年02月24日 23:44:45 | pitrou | set | messageid: <1298591085.7.0.176262469006.issue11314@psf.upfronthosting.co.za> |
| 2011年02月24日 23:44:44 | pitrou | link | issue11314 messages |
| 2011年02月24日 23:44:44 | pitrou | create |
|