Attention perl maintainer: pp_system () implemented via do_aspawn () faster ?

Christopher Faylor cgf@redhat.com
Thu Aug 7 15:06:00 GMT 2003


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



More information about the Cygwin-apps mailing list