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: Enhancement for file-attributes Date: Mon, 01 Oct 2012 16:56:23 +0200 Message-ID: <83r4pib5rc.fsf@gnu.org> References: <83a9w7egdd.fsf@gnu.org> <831uhicprf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1349103439 13700 80.91.229.3 (1 Oct 2012 14:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 14:57:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 16:57:23 2012 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 1TIhQj-0004Vh-R5 for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 16:57:09 +0200 Original-Received: from localhost ([::1]:54706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhQe-0001j2-FO for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 10:57:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhQX-0001hs-69 for emacs-devel@gnu.org; Mon, 01 Oct 2012 10:57:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIhQV-0004bJ-IW for emacs-devel@gnu.org; Mon, 01 Oct 2012 10:56:57 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhQV-0004b6-Ay for emacs-devel@gnu.org; Mon, 01 Oct 2012 10:56:55 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MB700500YOGMZ00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 01 Oct 2012 16:56:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MB7005PFYTSES50@a-mtaout20.012.net.il>; Mon, 01 Oct 2012 16:56:16 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:153831 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Mon, 01 Oct 2012 10:31:58 -0400 > > >> In how many places would we save the file-chase-links all? Are > >> these places important? > > One place is in files.el: after-find-file, when we visit a file that > > is a symlink, and backup-buffer. These are quite frequently used APIs. > > So you're saying it's important because it can impose > a noticeable overhead in those cases? Do we have actual numbers? No, I don't, at least not on Posix systems. On MS-Windows, chasing links is expensive, but that might be because the equivalent of 'readlink' is slower than on Posix. > It seems that both operations do so many other things that it might be > lost in the noise. Maybe so, but it's a boon to the programmer to pass one more argument instead of invoking another API, I think. And I see no danger in the change of the interface.