This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Attention perl maintainer: pp_system () implemented via do_aspawn () faster ?
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 7 Aug 2003 11:06:09 -0400
- Subject: Re: Attention perl maintainer: pp_system () implemented via do_aspawn () faster ?
- References: <28495.1060265259@www40.gmx.net>
- Reply-to: cygwin-apps at cygwin dot com
On Thu, Aug 07, 2003 at 04:07:39PM +0200, Pavel Tsekov wrote:
>Hello,
>
>The cygwin subdir in the perl source tree contains a set a functions named
>do_*spawn () which are based on the Cygwin spawnvp () call. That is
>presumably faster when all the parent wants to do is just start a new
>process that in unix would be accomplished by a call to fork ()
>followed by exec (). Having in mind that fork is quite heavy in Cygwin
>would it make sense to force pp_system () to be implemented via
>the do_*spawn () instead of fork () + exec (). The can be done
>by defining HAS_FORK && !defined (__CYGWIN__) in pp_system ().
>Btw this is what Cygwin does in its system () call.
FWIW, you can get almost the same speedup by using vfork/exec in cygwin.
cgf