From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Emacs Slowdown Date: Tue, 10 Mar 2015 12:39:04 +0000 Message-ID: <87siddf2mv.fsf@newcastle.ac.uk> References: <87pp8i75nk.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425991179 21470 80.91.229.3 (10 Mar 2015 12:39:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2015 12:39:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 10 13:39:32 2015 Return-path: Envelope-to: geh-help-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 1YVJRX-0001xn-7o for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Mar 2015 13:39:27 +0100 Original-Received: from localhost ([::1]:48622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVJRW-00019T-Ie for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Mar 2015 08:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVJRH-00019A-0P for help-gnu-emacs@gnu.org; Tue, 10 Mar 2015 08:39:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVJRC-00056Z-5Y for help-gnu-emacs@gnu.org; Tue, 10 Mar 2015 08:39:10 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:48635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVJRB-00056N-W4 for help-gnu-emacs@gnu.org; Tue, 10 Mar 2015 08:39:06 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1YVJRB-0008Rt-DD; Tue, 10 Mar 2015 12:39:05 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YVJRB-00040S-1T; Tue, 10 Mar 2015 12:39:05 +0000 In-Reply-To: (Stefan Monnier's message of "Mon, 9 Mar 2015 17:59:38 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103095 Archived-At: Stefan Monnier writes: >> which is a bit strange. I have no idea when "and" should be getting >> called so much. The top of the CPU profile looks like this... > >> - command-execute 3996 73% >> - call-interactively 3996 73% >> - apply 3996 73% >> - ad-Advice-call-interactively 3996 73% >> - # 3993 73% >> - ido-find-file 2231 40% >> - ido-file-internal 2231 40% >> - ido-read-internal 2181 39% >> - apply 2181 39% >> - ad-Advice-ido-read-internal 2181 39% >> + # > > This looks like rather few samples. Try to take a profile of a longer > duration with more commands (especially those you think should be very > quick and yet take a long time). I'll try that. > >> (global-font-lock-mode-check-buffers global-lentic-mode-check-buffers >> global-pabbrev-mode-check-buffers yas-global-mode-check-buffers >> global-eval-pulse-mode-check-buffers >> global-auto-complete-mode-check-buffers >> projectile-global-mode-check-buffers >> global-wide-column-mode-check-buffers >> wide-column-post-command-hook-function phil-show-paren-mode-check >> winner-save-old-configurations mode-local-post-major-mode-change) > > Those should only appear on post-command-hook transiently (i.e. only > after a command whose execution called a major-mode). Ah, yes, I didn't understand the help screen correctly. define-global-minor-mode adds to the default value and then takes these off buffer local once they have run? Phil