From unknown Tue Jun 24 05:11:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20961 <20961@debbugs.gnu.org> To: bug#20961 <20961@debbugs.gnu.org> Subject: Status: 24.5; `dired-jump' quite slow under Cygwin Emacs Reply-To: bug#20961 <20961@debbugs.gnu.org> Date: Tue, 24 Jun 2025 12:11:36 +0000 retitle 20961 24.5; `dired-jump' quite slow under Cygwin Emacs reassign 20961 emacs submitter 20961 Sebastien Vauban severity 20961 minor tag 20961 moreinfo wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 06:27:38 2015 Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 10:27:38 +0000 Received: from localhost ([127.0.0.1]:36988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAbiT-0005wt-OJ for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:27:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37746) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAbiR-0005wc-Nc for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:27:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAbiL-0003h4-A0 for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:27:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbiL-0003gw-6z for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:27:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbiJ-0001k2-Qz for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:27:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAbiG-0003fh-L0 for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:27:27 -0400 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:63152 helo=mail.missioncriticalit.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbiG-0003fS-BM for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 06:27:24 -0400 Received: from mundaneum (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id E97925001FB for ; Thu, 2 Jul 2015 12:27:22 +0200 (CEST) From: Sebastien Vauban To: bug-gnu-emacs@gnu.org Subject: 24.5; `dired-jump' quite slow under Cygwin Emacs Organization: Sebastien Vauban X-Url: Under construction... X-Archive: encrypt Date: Thu, 02 Jul 2015 12:27:11 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Now that profiling works under Cygwin Emacs (thanks Ken and Eli!), I can report the following when playing a couple of seconds with Dired-jump (which I find much slower on Cygwin Emacs than on Windows Emacs). --8<---------------cut here---------------start------------->8--- - ... 6440 59% - find-file 6315 58% - apply 6315 58% - ad-Advice-find-file 6315 58% - let 6315 58% - let 6315 58% - setq 6315 58% - with-no-warnings 6315 58% - funcall 6315 58% - # 6315 58% - find-file-noselect 6315 58% - run-hook-with-args-until-success 6315 58% - dired-noselect 6315 58% - dired-internal-noselect 6315 58% - dired-readin 6311 58% - dired-readin-insert 6290 57% - dired-insert-directory 6290 57% - insert-directory 6289 57% - apply 6289 57% - ls-lisp--insert-directory 6289 57% - get-free-disk-space 6288 57% - process-file 6288 57% apply 6288 57% + byte-code 1 0% + dired-insert-set-properties 1 0% + run-hooks 21 0% + create-file-buffer 3 0% + dired-mode 1 0% Automatic GC 125 1% - command-execute 4370 40% - apply 4370 40% - ad-Advice-command-execute 4370 40% - let 4370 40% - setq 4370 40% - with-no-warnings 4370 40% - funcall 4370 40% - # 4370 40% - call-interactively 4370 40% - helm-M-x 4354 40% - command-execute 4354 40% - apply 4354 40% - ad-Advice-command-execute 4354 40% - let 4354 40% - setq 4354 40% - with-no-warnings 4354 40% - funcall 4354 40% - # 4354 40% - call-interactively 4354 40% - byte-code 4351 39% - helm-M-x-read-extended-command 4351 39% - helm-comp-read 4351 39% - helm 4351 39% - apply 4351 39% - helm 4351 39% - apply 4351 39% - helm-internal 4351 39% - funcall 4351 39% - # 4351 39% - helm-read-pattern-maybe 4330 39% + read-from-minibuffer 323 2% + helm-update 4 0% + helm-initialize 19 0% + helm-display-buffer 2 0% + profiler-report 3 0% + diredp-previous-line 7 0% + diredp-next-line 5 0% + redisplay_internal (C function) 45 0% + timer-event-handler 21 0% --8<---------------cut here---------------end--------------->8--- In GNU Emacs 24.5.1 (x86_64-unknown-cygwin) of 2015-06-23 on desktop-new Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --srcdir=/home/kbrown/src/cygemacs/emacs-24.5-2.x86_64/src/emacs-24.5 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/emacs --htmldir=/usr/share/doc/emacs/html -C --with-w32 'CFLAGS=-ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.5-2.x86_64/build=/usr/src/debug/emacs-24.5-2 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.5-2.x86_64/src/emacs-24.5=/usr/src/debug/emacs-24.5-2' CPPFLAGS= LDFLAGS=' As I see there's an advice on `find-file', yes that's true; here's mine: --8<---------------cut here---------------start------------->8--- (defadvice find-file (around my/find-file activate) "Open the file named FILENAME and report time spent." (let ((filename (ad-get-arg 0)) (find-file-time-start (float-time))) (message "(Info) Finding file %s..." filename) ad-do-it (message "(Info) Found file %s in %.2f s" filename (- (float-time) find-file-time-start)))) --8<---------------cut here---------------end--------------->8--- Other couple of (innocent) customs: --8<---------------cut here---------------start------------->8--- (global-set-key (kbd "M-x") #'helm-M-x) (require 'dired-x) --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 10:57:41 2015 Received: (at 20961) by debbugs.gnu.org; 2 Jul 2015 14:57:41 +0000 Received: from localhost ([127.0.0.1]:37796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAfvp-0005Oq-7b for submit@debbugs.gnu.org; Thu, 02 Jul 2015 10:57:41 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:48988) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAfvm-0005Ob-6k for 20961@debbugs.gnu.org; Thu, 02 Jul 2015 10:57:39 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NQV00J007P4V200@mtaout25.012.net.il> for 20961@debbugs.gnu.org; Thu, 02 Jul 2015 17:53:22 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQV00IFG80Y2540@mtaout25.012.net.il>; Thu, 02 Jul 2015 17:53:22 +0300 (IDT) Date: Thu, 02 Jul 2015 17:57:42 +0300 From: Eli Zaretskii Subject: Re: bug#20961: 24.5; `dired-jump' quite slow under Cygwin Emacs In-reply-to: X-012-Sender: halo1@inter.net.il To: Sebastien Vauban Message-id: <83bnfu1uah.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20961 Cc: 20961@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Sebastien Vauban > Date: Thu, 02 Jul 2015 12:27:11 +0200 > > Now that profiling works under Cygwin Emacs (thanks Ken and Eli!), I can > report the following when playing a couple of seconds with Dired-jump > (which I find much slower on Cygwin Emacs than on Windows Emacs). > > --8<---------------cut here---------------start------------->8--- > - ... 6440 59% > - find-file 6315 58% > - apply 6315 58% > - ad-Advice-find-file 6315 58% > - let 6315 58% > - let 6315 58% > - setq 6315 58% > - with-no-warnings 6315 58% > - funcall 6315 58% > - # 6315 58% > - find-file-noselect 6315 58% > - run-hook-with-args-until-success 6315 58% > - dired-noselect 6315 58% > - dired-internal-noselect 6315 58% > - dired-readin 6311 58% > - dired-readin-insert 6290 57% > - dired-insert-directory 6290 57% > - insert-directory 6289 57% > - apply 6289 57% > - ls-lisp--insert-directory 6289 57% > - get-free-disk-space 6288 57% > - process-file 6288 57% > apply 6288 57% This seems to point to get-free-disk-space, which on Cygwin invokes the 'df' program, whereas the native w32 build calls a function to get the same info. You also seem to have Helm active, so perhaps these two factors together make 'df' invocation much slower than the w32 API call. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 04:25:36 2015 Received: (at 20961) by debbugs.gnu.org; 3 Jul 2015 08:25:36 +0000 Received: from localhost ([127.0.0.1]:38217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAwHv-0003KS-CM for submit@debbugs.gnu.org; Fri, 03 Jul 2015 04:25:36 -0400 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:5929 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAwHs-0003KB-DE for 20961@debbugs.gnu.org; Fri, 03 Jul 2015 04:25:33 -0400 Received: from MUNDANEUM (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 10327500758; Fri, 3 Jul 2015 10:25:26 +0200 (CEST) From: Sebastien Vauban To: Eli Zaretskii Subject: Re: bug#20961: 24.5; `dired-jump' quite slow under Cygwin Emacs Organization: Sebastien Vauban References: X-Url: Under construction... X-Archive: encrypt Date: Fri, 03 Jul 2015 10:25:12 +0200 In-Reply-To: (Eli Zaretskii's message of "Thu, 02 Jul 2015 17:57:42 +0300") Message-ID: <86mvzdabrr.fsf@example.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 20961 Cc: 20961@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Eli Zaretskii writes: >> From: Sebastien Vauban >> Date: Thu, 02 Jul 2015 12:27:11 +0200 >> >> Now that profiling works under Cygwin Emacs (thanks Ken and Eli!), I can >> report the following when playing a couple of seconds with Dired-jump >> (which I find much slower on Cygwin Emacs than on Windows Emacs). >> >> --8<---------------cut here---------------start------------->8--- >> - ... 6440 59% >> - find-file 6315 58% >> - apply 6315 58% >> - ad-Advice-find-file 6315 58% >> - let 6315 58% >> - let 6315 58% >> - setq 6315 58% >> - with-no-warnings 6315 58% >> - funcall 6315 58% >> - # 6315 58% >> - find-file-noselect 6315 58% >> - run-hook-with-args-until-success 6315 58% >> - dired-noselect 6315 58% >> - dired-internal-noselect 6315 58% >> - dired-readin 6311 58% >> - dired-readin-insert 6290 57% >> - dired-insert-directory 6290 57% >> - insert-directory 6289 57% >> - apply 6289 57% >> - ls-lisp--insert-directory 6289 57% >> - get-free-disk-space 6288 57% >> - process-file 6288 57% >> apply 6288 57% > > This seems to point to get-free-disk-space, which on Cygwin invokes > the 'df' program, whereas the native w32 build calls a function to get > the same info. I never had noticed that the "available" space was shown in Dired... Hard to read, BTW, a figure such as "10232288" (neither comma, nor abbreviation like 10.2G). And, in fact, that information could be dropped for my own usage... I'm simply interested by the contents of the directories. > You also seem to have Helm active, so perhaps these two factors > together make 'df' invocation much slower than the w32 API call. Yes, I do have Helm active, but I don't think it comes here to play -- and, in fact, it's not even reported in that part of the trace. Best regards, Seb -- Sebastien Vauban From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 15:24:23 2016 Received: (at control) by debbugs.gnu.org; 7 Dec 2016 20:24:23 +0000 Received: from localhost ([127.0.0.1]:60169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEilL-0001k4-Mt for submit@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEilK-0001jr-EM for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEilE-0008FO-P0 for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEilE-0008FH-LT for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:16 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEilE-0006xI-B7 for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:16 -0500 Subject: control message for bug 20961 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 07 Dec 2016 15:24:16 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) tag 20961 + wontfix From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 15:24:15 2016 Received: (at 20961-done) by debbugs.gnu.org; 7 Dec 2016 20:24:15 +0000 Received: from localhost ([127.0.0.1]:60166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEilD-0001jj-GJ for submit@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEilC-0001jX-DE for 20961-done@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEil6-0008AJ-LD for 20961-done@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEil6-0008AE-IO for 20961-done@debbugs.gnu.org; Wed, 07 Dec 2016 15:24:08 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEil6-0006v8-2y; Wed, 07 Dec 2016 15:24:08 -0500 From: Glenn Morris To: 20961-done@debbugs.gnu.org Subject: Re: bug#20961: 24.5; `dired-jump' quite slow under Cygwin Emacs References: <86mvzdabrr.fsf@example.com> X-Spook: 2600 Gas CESID $400 million in gold bullion Panama AMTRAK X-Ran: %o.!tj:Hw0U1apFSb$Ct"yjt]pF*nBH_jJ-|\|"0}X5,}n8i-CX80ul4k7k)11vo/77l;$ X-Hue: yellow X-Attribution: GM Date: Wed, 07 Dec 2016 15:24:07 -0500 In-Reply-To: <86mvzdabrr.fsf@example.com> (Sebastien Vauban's message of "Fri, 03 Jul 2015 10:25:12 +0200") Message-ID: <0ok2bbfpy0.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 20961-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) This doesn't seem to be leading anywhere, so after 18 months with no comments I am closing it. From unknown Tue Jun 24 05:11:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jan 2017 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator