From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3 Date: Sat, 25 Oct 2008 04:38:00 +0100 Message-ID: <49029498.9080808@harpegolden.net> References: <20081022091136.GB924@muc.de> <20081022211202.GA1037@muc.de> <49001F5A.7040402@harpegolden.net> <20081023090908.GB2666@muc.de> <4900ACF9.7060501@harpegolden.net> <4900FF17.2000203@harpegolden.net> <4901FB95.8080703@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224905897 5691 80.91.229.12 (25 Oct 2008 03:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2008 03:38:17 +0000 (UTC) Cc: acm@muc.de, eliz@gnu.org, lennart.borgman@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 25 05:39:18 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KtZzh-00082y-Sv for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2008 05:39:18 +0200 Original-Received: from localhost ([127.0.0.1]:33528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtZyc-0006JI-0t for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 23:38:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtZyY-0006JC-Ds for emacs-devel@gnu.org; Fri, 24 Oct 2008 23:38:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtZyX-0006Iz-Rj for emacs-devel@gnu.org; Fri, 24 Oct 2008 23:38:06 -0400 Original-Received: from [199.232.76.173] (port=36772 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtZyX-0006Iu-NC for emacs-devel@gnu.org; Fri, 24 Oct 2008 23:38:05 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:46191) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtZyV-00065p-GS; Fri, 24 Oct 2008 23:38:03 -0400 Original-Received: from [87.198.54.44] (87-198-54-44.ptr.magnet.ie [87.198.54.44]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id E17C68088; Sat, 25 Oct 2008 04:38:01 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104979 Archived-At: Richard M. Stallman wrote: > Does `normal-mode' look for the that file more than once in a given > directory? AFAIK it shouldn't in a given call. Across calls caching the info would be wrong* since a user might happen to make a .dir-settings.el in the interim. Anyway, as per recent previous mail with patch [1] the issue was with _how_ the filename was being looked for in the directory - ask for every filename in the directory and iterate through checking if one regex-matches (directory-files, slower) or ask if the directory has a file called filename in it (file-exists-p, faster). * well, could have a smart cache with inotify (or other-oses-equivalent). http://en.wikipedia.org/wiki/Inotify "function is essentially an extension to filesystems to notice changes to the filesystem, and report those changes to applications.", ... and/or a batch interface that signals that a bunch of files are about to be opened in one go and it's okay to cache for a bit... ... but maybe not worth the bother in this instance... [1] Message-ID: <49025DF8.6030502@harpegolden.net>