This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]