From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: CHECK_STRUCTS/dmpstruct.h mechanism is broken. Date: Fri, 12 Apr 2019 13:21:56 +0100 Message-ID: References: <20190228202146.GC4686@ACM> <20190228205955.GD4686@ACM> <20190410162203.GA4009@ACM> <9809d5ce-c1c4-48e9-6dac-489431b34067@cs.ucla.edu> <671ba8dd-894b-5698-d162-8901b1098b9a@cs.ucla.edu> <83k1g04al8.fsf@gnu.org> <93b861b3-41d2-e590-d4b8-46a4bb64bfe8@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58466"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 14:26:03 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEvFq-000F0z-Jo for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2019 14:26:02 +0200 Original-Received: from localhost ([127.0.0.1]:35614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEvFp-00024V-F1 for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2019 08:26:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEvC5-00077w-Af for emacs-devel@gnu.org; Fri, 12 Apr 2019 08:22:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEvC4-0007n6-D4 for emacs-devel@gnu.org; Fri, 12 Apr 2019 08:22:09 -0400 Original-Received: from [195.159.176.226] (port=36630 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEvC2-0007iN-3a for emacs-devel@gnu.org; Fri, 12 Apr 2019 08:22:06 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hEvBx-000ADI-PK for emacs-devel@gnu.org; Fri, 12 Apr 2019 14:22:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:SDPNx11YdXWwSmXtif0tBAdkPyE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:235334 Archived-At: On Thu 11 Apr 2019, Paul Eggert wrote: > On 4/11/19 12:15 PM, Eli Zaretskii wrote: >> You want to test for system-dependent features with Make? How does >> one do that? > > You execute the test as a 'make' rule that records the test's result as > a makefile snippet (or as a .h file, or whatever). Which gives you a buggy reimplementation of half of autoconf. >> IME, the slowest part is byte compilation of Lisp files. Of course, >> that is only a significant factor when you bootstrap or rebuild large >> parts of Emacs, but still. > Yes. Typically I don't recompile Lisp files so the bottleneck for me is > 'configure'. > > Moreover, Lisp file recompilation is parallelized so it's reasonably > fast on larger platforms (the wave of the future :-), whereas > 'configure' will remain slow. I just now timed it, and './configure' > took 29 real-time seconds whereas 'cd lisp; make -j16 compile-always' > took 38 real-time seconds; this was with two circa-2013 Xeon E5-2640 v2 > CPUs with 8 cores each. So on a 32-core platform, I expect ./configure > to take longer than byte-compiling all the Lisp files - i.e., > 'configure' is ridiculously slow. You could help speed up configure by fixing the ridiculously long set of checks for supported compiler flags that come from gnulib. That is glacially slow and mostly pointless. AndyM