From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: builds are getting slower? Date: Wed, 16 Dec 2015 13:58:26 +0200 Message-ID: <83lh8u1u71.fsf@gnu.org> References: <8337vab7nx.fsf@gnu.org> <0d7fkmdxj1.fsf@fencepost.gnu.org> <566D0BEB.4010707@cs.ucla.edu> <52wpsif21j.fsf@fencepost.gnu.org> <6tpoy9aorv.fsf@fencepost.gnu.org> <83fuz54sfk.fsf@gnu.org> <83d1u73cz8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1450267107 19381 80.91.229.3 (16 Dec 2015 11:58:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 11:58:27 +0000 (UTC) Cc: rgm@gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 12:58:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9Aip-0006RF-Un for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 12:58:20 +0100 Original-Received: from localhost ([::1]:46805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Aip-0001Xg-8O for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 06:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Ail-0001XX-ME for emacs-devel@gnu.org; Wed, 16 Dec 2015 06:58:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Aik-0000aV-Vi for emacs-devel@gnu.org; Wed, 16 Dec 2015 06:58:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Aif-0000a5-VZ; Wed, 16 Dec 2015 06:58:10 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4300 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9Aie-0006X5-SN; Wed, 16 Dec 2015 06:58:09 -0500 In-reply-to: (message from Artur Malabarba on Wed, 16 Dec 2015 11:50:11 +0000) 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.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196365 Archived-At: > Date: Wed, 16 Dec 2015 11:50:11 +0000 > From: Artur Malabarba > Cc: emacs-devel , Glenn Morris , eggert@cs.ucla.edu > > We need to locate the dir locals file(s) in order to compare its timestamp to > the cache. Do we have a faster way of expanding wildcards? Does it have to be wildcards? Will file-name-all-completions not do? And why exactly this code needs to run when we need to byte-compile Lisp files, btw? Also, since we know only very well which dir-local files are present in the Emacs tree, we could make some trick (like binding a special variable) for this case. After all, 20% is only clearly visible when the total build time is long, and that doesn't happen a lot outside of bootstrapping Emacs. In any case, I suggest to profile this code, before we decide that this is indeed the culprit. It could be something utterly unrelated.