Antoine Pitrou <pit...@free.fr> added the comment:

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.

----------
nosy: +pitrou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11314>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to