develooper Front page | perl.perl5.porters | Postings from May 2016

Re: [perl #128227] vfork should be used for spawning externalprocesses

Thread Previous | Thread Next
From:
Zefram
Date:
May 24, 2016 13:36
Subject:
Re: [perl #128227] vfork should be used for spawning externalprocesses
Message ID:
20160524133545.GC16984@fysh.org
via RT wrote:
>In my attached example (vfork.perl) using Inline::C, it only takes
>around 3 seconds to vfork+execve+waitpid "/bin/true" 10000 times
>on my system.  With the Perl CORE::system() function, it takes
>11-12 seconds(!). 

This is not a fair comparison.  You should compare standard CORE::system()
against an equivalent implementation of the system op that uses vfork
instead of fork, because that's the change that you're proposing we
should make.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About