From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18051: 24.3.92; ls-lisp: Sorting; make ls-lisp-string-lessp a normal function? Date: Fri, 18 Jul 2014 15:57:52 +0300 Message-ID: <83y4vq6cz3.fsf@gnu.org> References: <87ha2f5gp8.fsf@web.de> <838unr6ttu.fsf@gnu.org> <871ttj5dfi.fsf@web.de> <87iomvhvdg.fsf@gmx.de> <834myf6mfl.fsf@gnu.org> <87a987ht5r.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1405688370 16934 80.91.229.3 (18 Jul 2014 12:59:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2014 12:59:30 +0000 (UTC) Cc: michael_heerdegen@web.de, 18051@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 14:59:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1X87ks-0002TI-QD for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 14:59:18 +0200 Original-Received: from localhost ([::1]:49713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X87ks-0003Vl-HK for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 08:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X87kj-0003Ul-IP for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 08:59:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X87kd-0001nT-1t for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 08:59:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X87kc-0001nJ-Ui for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 08:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X87kc-0004Xl-BB for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 08:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jul 2014 12:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18051-submit@debbugs.gnu.org id=B18051.140568829317403 (code B ref 18051); Fri, 18 Jul 2014 12:59:02 +0000 Original-Received: (at 18051) by debbugs.gnu.org; 18 Jul 2014 12:58:13 +0000 Original-Received: from localhost ([127.0.0.1]:57998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X87jo-0004Wc-Px for submit@debbugs.gnu.org; Fri, 18 Jul 2014 08:58:13 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:49726) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X87jk-0004WF-VF for 18051@debbugs.gnu.org; Fri, 18 Jul 2014 08:58:10 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N8W00900RMI5A00@mtaout27.012.net.il> for 18051@debbugs.gnu.org; Fri, 18 Jul 2014 15:53:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8W008H9RTPFN10@mtaout27.012.net.il>; Fri, 18 Jul 2014 15:53:49 +0300 (IDT) In-reply-to: <87a987ht5r.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91633 Archived-At: > From: Michael Albinus > Cc: michael_heerdegen@web.de, 18051@debbugs.gnu.org > Date: Fri, 18 Jul 2014 12:12:48 +0200 > > >> Tramp uses ls-lisp only in case it cannot use a native method on the > >> remote host. Experience shows, that ls-lisp has a much worse performance > >> for remote directories than native implementations. > > > > Any insight as to why this happens? Perhaps the Tramp implementation > > of directory-files-and-attributes needs some love? > > Maybe it is a misunderstanding. Tramp's native implementation is much > faster, because it sends exactly one remote command. For ssh-like > connections, this is for example > > # echo "("; (/bin/ls --color=never -a | sed -e s/\$/\"/g -e s/^/\"/g | xargs \stat -c '("%n" ("%N") %h %ue0 %ge0 %Xe0 %Ye0 %Ze0 %se0 "%A" t %ie0 -1)' 2>/dev/null); echo ")" 2>/dev/null We could easily add this to ls-lisp, in case the directory is remote. Right now, it simply doesn't support remote directories, because I didn't know there was any interest in that. > I would oppose only if there is an additional mandatory functionality in > ls-lisp other file name primitives are urged to use. If there would > be changes in, let's say, directory-files-and-attributes, there's no > problem for me. But that's not what Michael has asked for. I don't think you understood what Michael wanted, but I'll let Michael speak for himself.