From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: builds are getting slower? Date: Wed, 16 Dec 2015 14:25:56 +0100 Message-ID: <87egem5xuj.fsf@fencepost.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> <83lh8u1u71.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450272370 9132 80.91.229.3 (16 Dec 2015 13:26:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 13:26:10 +0000 (UTC) Cc: Glenn Morris , Eli Zaretskii , eggert@cs.ucla.edu, emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 14:26:09 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 1a9C5o-0007MZ-Uz for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 14:26:09 +0100 Original-Received: from localhost ([::1]:47419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9C5n-0002lf-Aj for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 08:26:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9C5i-0002ki-Nt for emacs-devel@gnu.org; Wed, 16 Dec 2015 08:26:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9C5h-0005yJ-Un for emacs-devel@gnu.org; Wed, 16 Dec 2015 08:26:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9C5e-0005x0-0h; Wed, 16 Dec 2015 08:25:58 -0500 Original-Received: from localhost ([127.0.0.1]:33486 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1a9C5c-0006tM-Qz; Wed, 16 Dec 2015 08:25:57 -0500 Original-Received: by lola (Postfix, from userid 1000) id 70691E0009; Wed, 16 Dec 2015 14:25:56 +0100 (CET) In-Reply-To: (Artur Malabarba's message of "Wed, 16 Dec 2015 13:09:05 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:196369 Archived-At: Artur Malabarba writes: > On 16 Dec 2015 11:58 am, "Eli Zaretskii" wrote: >> > 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? > > Yes, I think we can do that. > >> And why exactly this code needs to run when we need to byte-compile >> Lisp files, btw? > > I suspect it's because the byte-compiler is affected by local variables, so > it needs to know them. Not really. It loads the files, and loading the files sets the directory-local variables. I don't think it is a good idea to use them for byte compilation even though I have to admit that a directory-wide setting of `lexical-binding' would seem less ugly than putting it in every file manually. But it sounds like a recipe for trouble. -- David Kastrup