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: find-file takes forever on slow network file systems and very deep directories Date: Fri, 26 Sep 2008 18:41:47 +0300 Message-ID: References: <48D86443.5090001@gmail.com> <50f5aa6a0809231114n3890d69bi77ee4c6b70572232@mail.gmail.com> <50f5aa6a0809231251k37f1f3a3p8a23b1a258a209ee@mail.gmail.com> <50f5aa6a0809250926y5047e8ei77416eb64fff5b09@mail.gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1222443941 7438 80.91.229.12 (26 Sep 2008 15:45:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 15:45:41 +0000 (UTC) Cc: andy.leszczynski@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 26 17:46:39 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 1KjFWZ-0000Il-6t for ged-emacs-devel@m.gmane.org; Fri, 26 Sep 2008 17:46:31 +0200 Original-Received: from localhost ([127.0.0.1]:48257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjFVW-0007jB-MB for ged-emacs-devel@m.gmane.org; Fri, 26 Sep 2008 11:45:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjFSA-00061e-38 for emacs-devel@gnu.org; Fri, 26 Sep 2008 11:41:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjFS8-00060y-WE for emacs-devel@gnu.org; Fri, 26 Sep 2008 11:41:57 -0400 Original-Received: from [199.232.76.173] (port=45136 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjFS8-00060s-QA for emacs-devel@gnu.org; Fri, 26 Sep 2008 11:41:56 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:51548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjFS8-0006lc-8F for emacs-devel@gnu.org; Fri, 26 Sep 2008 11:41:56 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K7T007L37NGW9U0@i_mtaout2.012.net.il> for emacs-devel@gnu.org; Fri, 26 Sep 2008 18:42:59 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:104174 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org, Andrzej Leszczynski > Date: Fri, 26 Sep 2008 11:05:51 -0400 > > > Does anyone have any thoughts on how to avoid such a significant > > performance hit (15 sec for a simple `find-file') on Samba volumes, as > > opposed to just 2 seconds in Emacs 21.x, which didn't automatically > > have `vc-find-file-hook' on the `find-file-hook' list? > > > If there's no good cure, we should at least provide a user option to > > avoid putting `vc-find-file-hook' on `find-file-hook', or maybe allow > > finer-grain control of it, like per filesystem. > > AFAIK, the same happened under Emacs-21. Not with "emacs -Q", AFAICS. > 2 - Set vc-ignore-dir-regexp to turn off VC in your Samba subtree. That'd be the solution I was looking for. Thanks. Andy, does this do what you want? (I still have on my TODO to make most callers of `stat' on Windows bind w32-get-true-file-attributes to nil, which will make find-file even faster.)