From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: windows installer Date: Fri, 17 Nov 2017 09:35:26 +0200 Message-ID: <8360a9icht.fsf@gnu.org> References: <87po99qzbn.fsf@russet.org.uk> <1509955878.550800.1162811960.541B525D@webmail.messagingengine.com> <87h8u6bae3.fsf@russet.org.uk> <1510126271.1965593.1165373624.0601E5CF@webmail.messagingengine.com> <8760aijcek.fsf@russet.org.uk> <83ineiotjr.fsf@gnu.org> <3f972e79-afcd-4f92-a283-41fad4b687fb@default> <83efp5p8km.fsf@gnu.org> <87a7zpbxza.fsf@russet.org.uk> <87375eqjy0.fsf@russet.org.uk> <83lgj6i451.fsf@gnu.org> <83k1yqi2kn.fsf@gnu.org> <83ineai0mj.fsf@gnu.org> <83bmk1idgj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1510904216 11585 195.159.176.226 (17 Nov 2017 07:36:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 07:36:56 +0000 (UTC) Cc: emacs-devel@gnu.org, rcopley@gmail.com, jostein@secure.kjonigsen.net, jostein@kjonigsen.net, drew.adams@oracle.com, phillip.lord@russet.org.uk To: Fabrice Popineau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 17 08:36:51 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFbCj-0002TE-CS for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 08:36:49 +0100 Original-Received: from localhost ([::1]:44318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFbCp-0006xz-9H for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 02:36:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFbCf-0006uM-L7 for emacs-devel@gnu.org; Fri, 17 Nov 2017 02:36:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFbCe-0001oM-QQ for emacs-devel@gnu.org; Fri, 17 Nov 2017 02:36:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFbBd-0000dK-3m; Fri, 17 Nov 2017 02:35:41 -0500 Original-Received: from [176.228.60.248] (port=2703 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eFbBc-00016H-FL; Fri, 17 Nov 2017 02:35:40 -0500 In-reply-to: (message from Fabrice Popineau on Fri, 17 Nov 2017 08:22:52 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220245 Archived-At: > From: Fabrice Popineau > Date: Fri, 17 Nov 2017 08:22:52 +0100 > Cc: Richard Copley , Jostein Kjønigsen , > Emacs developers , Jostein Kjønigsen , > Drew Adams , Phillip Lord > > > Windows is ridiculously slow to start a new process. > > You mean Cygwin and MSYS, not Windows itself, right? Because 99.99% > of process starting during the build is MSYS Bash starting GCC, Grep, > Find, and other programs. > > Actually, it is the CreateProcess() call which is overkill for most of its usages. > From what I have read, the problem comes from attaching default console, > checking permissions and stuff like that, which fork() does in a very different way. > Windows has been designed for dlls and inter-dlls calls, not for processes communicating > the way Unix did. AFAIK, Cygwin (and therefore MSYS) makes this much more expensive due to fork emulation.