From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Slow repainting, sluggish feeling emacs Date: Mon, 12 May 2008 21:10:39 -0400 Message-ID: <475204970805121810y5edc513by93a0fdbcd2ca557@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5436_10895852.1210641039372" X-Trace: ger.gmane.org 1210641071 9142 80.91.229.12 (13 May 2008 01:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2008 01:11:11 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 13 03:11:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jvj3F-0001t7-NC for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 03:11:34 +0200 Original-Received: from localhost ([127.0.0.1]:56274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvj2W-0008Cl-JK for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 21:10:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jvj2R-0008CW-UZ for emacs-devel@gnu.org; Mon, 12 May 2008 21:10:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jvj2Q-0008CK-GC for emacs-devel@gnu.org; Mon, 12 May 2008 21:10:42 -0400 Original-Received: from [199.232.76.173] (port=43384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvj2Q-0008CH-AG for emacs-devel@gnu.org; Mon, 12 May 2008 21:10:42 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.191]:50578) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jvj2P-0002eV-NO for emacs-devel@gnu.org; Mon, 12 May 2008 21:10:42 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 18so2138534fkq.10 for ; Mon, 12 May 2008 18:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; bh=ARE07tmMjoL3Wb2mZJZrVq1Q8+KVhcyT89Eue4hD9gI=; b=SgsnZpV97GhAJlNCiRoYHd3xeszZsvzQK7PCgISyU7FzYrUHYJMJGcJIk5g0/mMCnFBZG1eVanbf5/ZX5f9VcX6lDd20+pN6dK+U1Wt8zTR0wytR2qgfcqd6Gdz6JDltgar2txqCWRZLO6DXMkWnMnraLpq0zXxp6gJhLOLLrp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=tLcBpXpdizev0n80Zhi0TX563VMrAZRbc/G/5DlbYDxqIRYBODFq7SPVal0Ya4YPIoOWYQmIN2H6qF3158aMf8H5w0kMkdkYY5qSXi4vmEXV1N0vuDz+9HfBafMNsI6PEKULvcMlPSE1NBgKFLLGVy2cfG+wNTU4ZHwpUl32zOU= Original-Received: by 10.78.21.7 with SMTP id 7mr2065012huu.69.1210641039391; Mon, 12 May 2008 18:10:39 -0700 (PDT) Original-Received: by 10.78.141.4 with HTTP; Mon, 12 May 2008 18:10:39 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97060 gmane.emacs.pretest.bugs:22290 Archived-At: ------=_Part_5436_10895852.1210641039372 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I recently re-built emacs 23 from cvs and there's a noticeable delay in many repainting operations. Typing is sluggish and redrawing a buffer when switching to it is noticeably slow. So I tried to measure the difference. I started two versions of emacs with --no-init, loaded nothing, and immediately ran elp-instrument-function on "ibuffer". Here are the results: emacs(GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-02-20 on U0103223-XPA) Function Name Call Count Elapsed Time Average Time ibuffer 1 0.0 0.0 GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-05-12 on U0103223-XPA Function Name Call Count Elapsed Time Average Time ibuffer 1 0.032 0.032 I ran elp-instrument-function again and got: ibuffer 1 0.047 0.047 The time difference is very small, but with a loaded up emacs config the time becomes very noticeable. I built emacs on windows-xp using cygwin(-mno-cygwin however), ming32-make. Both versions of the build where 'configured' the same: Here's the 'report-emacs-bug' important stuff: In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-05-12 on U0103223-XPA Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -I../../include -msse3 -O3' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x M-p i e l p 0 - i n s t r f u n i b u f f e r M-x l o a d - l i i b u f f e r M-x M-p M-p M-p M-x i b u f f e r q C-x b C-g C-x C-b q C-x 1 M-x i b u f f e r - e l p - r e s u l C-SPC M-w q M-x r e p o r Recent messages: goto-history-element: Beginning of history; no preceding item elp-instrument-function: ELP cannot profile autoloaded function: ibuffer Loading ibuffer...done Updating buffer list... Formats have changed, recompiling...done Mark set Updating buffer list...done Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help Quit Mark set ------=_Part_5436_10895852.1210641039372 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I recently re-built emacs 23 from cvs and there's a noticeable delay in many repainting operations. Typing is sluggish and redrawing a buffer when switching to it is noticeably slow. 

So I tried to measure the difference.  I started two versions of emacs with --no-init, loaded nothing, and immediately ran elp-instrument-function on "ibuffer".  Here are the results:

emacs(GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-02-20 on U0103223-XPA)
Function Name Call Count Elapsed Time Average Time
ibuffer        1           0.0           0.0


GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-05-12 on U0103223-XPA
Function Name Call Count Elapsed Time Average Time
ibuffer        1           0.032         0.032

I ran elp-instrument-function again and got:
ibuffer        1           0.047         0.047

The time difference is very small, but with a loaded up emacs config the time becomes very noticeable.
I built emacs on windows-xp using cygwin(-mno-cygwin however), ming32-make.  Both versions of the build where 'configured' the same:

Here's the 'report-emacs-bug' important stuff:


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-05-12 on U0103223-XPA
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -I../../include -msse3 -O3'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x M-p i <backspace> e l p 0 <backspace> - i n s t
r <tab> f u n <tab> <return> i b u f f e r <return>
M-x l o a d - l i <tab> <return> i b u f f e r <return>
M-x M-p M-p <return> M-p <return> M-x i b u f f e r
<return> q C-x b C-g C-x C-b <down> <down> <down> <down>
<down> <down> q C-x 1 M-x i b u f f e r - <M-backspace>
e l p - r e s u l <tab> <return> C-SPC <down> M-w q
M-x r e p o r <tab> <return>

Recent messages:
goto-history-element: Beginning of history; no preceding item
elp-instrument-function: ELP cannot profile autoloaded function: ibuffer
Loading ibuffer...done
Updating buffer list...
Formats have changed, recompiling...done
Mark set
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Quit
Mark set

------=_Part_5436_10895852.1210641039372--