From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: slow find-file for network file systems and very deep directories Date: Tue, 16 Sep 2008 21:54:41 +0300 Message-ID: References: <48C9DA7A.8050900@ggmail.com> <48CB247F.8030504@ggmail.com> <48CF2ECE.1050602@ggmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1221591323 24375 80.91.229.12 (16 Sep 2008 18:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 18:55:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 20:56:19 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KffiV-0007s1-F5 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 20:56:04 +0200 Original-Received: from localhost ([127.0.0.1]:38196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KffhU-0003rv-5W for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 14:55:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kffh9-0003rR-Kd for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:54:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kffh6-0003qZ-VQ for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:54:38 -0400 Original-Received: from [199.232.76.173] (port=35833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kffh6-0003qT-OP for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:54:36 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:63677) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kffh6-0003cg-3C for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:54:36 -0400 Original-Received: from HOME-C4E4A596F7 ([87.70.4.235]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K7A00EGXXWGQ202@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 21:55:29 +0300 (IDT) In-reply-to: <48CF2ECE.1050602@ggmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57706 Archived-At: > From: AlFire > Date: Mon, 15 Sep 2008 20:58:06 -0700 > > Eli Zaretskii wrote: > > > > Does it help to set w32-get-true-file-attributes to a nil value? > > > > > > did not help - I tested it. and probably should since describe-variable says it is NTFS only: > > > Documentation: > Non-nil means determine accurate link count in `file-attributes'. > Note that this option is only useful for files on NTFS volumes, where hard links > are supported. Moreover, it slows down `file-attributes' noticeably. No, that's not what the doc string says: it says that the option is _useful_ only on NTFS volumes, i.e. it will only get more accurate file attributes on NTFS. But it slows down Emacs on all types of volumes, and networked volumes get generally hit the most. > what else? could it be really considered a bug. from the original trace - I noted that Emacs is kind of looking for a source control related files like: .bzr\checkout\, _MTN, {arch}\, MCVS\ and walking thru the tree structure multiple times. I don't see anything wrong with the trace, since RET in the minibuffer actually tries to see if there are files in the directory that match what you typed so far. Can you compare the time it takes to visit the file when you type "C-x C-f" with what happens when you type this instead: M-: (find-file "W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c") RET Also, do you happen to know if this was significantly faster in previous Emacs versions?