This is the mail archive of the
mailing list for the Cygwin project.
Re: Attention perl maintainer: pp_system () implemented via do_aspawn () faster ?
- From: Pavel Tsekov <ptsekov at gmx dot net>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 7 Aug 2003 17:30:10 +0200 (MEST)
- Subject: Re: Attention perl maintainer: pp_system () implemented via do_aspawn () faster ?
Christopher Faylor wrote:
>>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.
Yep, but from what I understand Perl 5.8 removed the usage of vfork ().
So this why is I suggested the solution via spawnvp () which is already
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post