From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: recentf-cleanup, file-readable-p & remote files Date: Wed, 17 Sep 2003 04:10:49 +0200 Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: References: <14940442.1063698697392.JavaMail.www@wwinf0603> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063764917 24847 80.91.224.253 (17 Sep 2003 02:15:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2003 02:15:17 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Wed Sep 17 04:15:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zRqd-00029o-00 for ; Wed, 17 Sep 2003 04:15:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zRoK-0003d2-5R for gebp-emacs-pretest-bug@gmane.org; Tue, 16 Sep 2003 22:12:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19zRnf-0003Rb-2y for emacs-pretest-bug@gnu.org; Tue, 16 Sep 2003 22:12:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19zRnd-0003RN-L0 for emacs-pretest-bug@gnu.org; Tue, 16 Sep 2003 22:12:10 -0400 Original-Received: from [193.162.153.4] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zRnb-0003O1-M4; Tue, 16 Sep 2003 22:12:07 -0400 Original-Received: from [195.249.130.106] (0xc3f9826a.esnxr3.ras.tele.dk [195.249.130.106]) by pfepc.post.tele.dk (Postfix) with ESMTP id 3F39826292D; Wed, 17 Sep 2003 04:11:53 +0200 (CEST) Original-To: david.ponce@wanadoo.fr In-Reply-To: <14940442.1063698697392.JavaMail.www@wwinf0603> (David PONCE's message of "Tue, 16 Sep 2003 09:51:37 +0200 (CEST)") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.pretest.bugs:1064 gmane.emacs.devel:16430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16430 David PONCE writes: > IMO a better solution would be to allow to disable connection > timeout when calling the `file-readable-p' remote handler (I don't > know if this is feasible). So when not connected, `file-readable-p' > will immediately return nil, without waiting for a remote > connection. Ah, I think you misunderstood part of what I was trying to say -- which is that `file-readable-p' can be very slow when you *are* connected (when I'm not connected it returns in a fraction of second, so that's not a problem) The reason is that that ange-ftp implements it rather inefficiently. Instead of just listing the file in question it lists *all* files in the directory. That's a lot of data if the directory contains thousands of files. In the example from my previous post doing `file-readable-p' is ~500 times slower than actually fetching the file! -- Cheers, Jesper Harder