From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#20961: 24.5; `dired-jump' quite slow under Cygwin Emacs Date: Thu, 02 Jul 2015 12:27:11 +0200 Organization: Sebastien Vauban Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435832904 16728 80.91.229.3 (2 Jul 2015 10:28:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 10:28:24 +0000 (UTC) To: 20961-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Jul 02 12:28:13 2015 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 1ZAbj3-0003Mi-9Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 12:28:13 +0200 Original-Received: from localhost ([::1]:35817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbj2-0001lH-7D for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 06:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbix-0001lB-Ng for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAbit-0003sm-Vs for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:28:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAbit-0003sK-Kf for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAbit-0005xX-37 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:28:03 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Thu, 02 Jul 2015 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: report 20961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-Received: via spool by submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B.143583285822875 (code B ref -1); Thu, 02 Jul 2015 10:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 10:27:38 +0000 Original-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-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 02 Jul 2015 06:27:38 -0400 Original-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-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 02 Jul 2015 06:27:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAbiL-0003h4-A0 for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 02 Jul 2015 06:27:30 -0400 Original-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-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Thu, 02 Jul 2015 06:27:29 -0400 Original-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-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:27:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAbiG-0003fh-L0 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:27:27 -0400 Original-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-mXXj517/zsQ@public.gmane.org; Thu, 02 Jul 2015 06:27:24 -0400 Original-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) X-Url: Under construction... X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin) 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-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.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-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:104606 Archived-At: 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---