From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#233: marked as done (Slow repainting, sluggish feeling emacs) Date: Wed, 30 Jul 2008 15:15:04 -0700 Message-ID: References: <4890E682.6090108@gnu.org> <475204970805121810y5edc513by93a0fdbcd2ca557@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1217456104-22136-0" X-Trace: ger.gmane.org 1217456881 1880 80.91.229.12 (30 Jul 2008 22:28:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2008 22:28:01 +0000 (UTC) To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 00:28:50 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOK9x-0002Be-Bm for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jul 2008 00:28:41 +0200 Original-Received: from localhost ([127.0.0.1]:48669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOK92-0001n1-Q1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jul 2008 18:27:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOK8n-0001eO-Ce for bug-gnu-emacs@gnu.org; Wed, 30 Jul 2008 18:27:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOK8m-0001e8-Ml for bug-gnu-emacs@gnu.org; Wed, 30 Jul 2008 18:27:29 -0400 Original-Received: from [199.232.76.173] (port=59228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOK8m-0001e3-E9 for bug-gnu-emacs@gnu.org; Wed, 30 Jul 2008 18:27:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52903) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOK8h-0005wX-J9; Wed, 30 Jul 2008 18:27:24 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6UMRLCO025814; Wed, 30 Jul 2008 15:27:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6UMF4lq022239; Wed, 30 Jul 2008 15:15:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 233 X-Emacs-PR-Package: emacs,w32 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18930 Archived-At: This is a multi-part message in MIME format... ------------=_1217456104-22136-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 30 Jul 2008 23:09:06 +0100 with message-id <4890E682.6090108@gnu.org> and subject line Slow repainting, sluggish feeling emacs has caused the Emacs bug report #233, regarding Slow repainting, sluggish feeling emacs to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 233: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D233 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1217456104-22136-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=4.0 tests=FOURLA,HTML_MESSAGE, NORMAL_HTTP_TO_IP autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 13 May 2008 01:11:16 +0000 Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4D1BBAI004297 for ; Mon, 12 May 2008 18:11:12 -0700 Received: by mercure.iro.umontreal.ca (Postfix, from userid 20848) id EC8012CFDC5; Mon, 12 May 2008 21:11:10 -0400 (EDT) X-Original-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id CCB6E2CFA6C for ; Mon, 12 May 2008 21:11:10 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 138F03B8AA7 for ; Mon, 12 May 2008 21:11:03 -0400 (EDT) Received: from localhost ([127.0.0.1]:56274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvj2k-0008Cl-HN for monnier@iro.umontreal.ca; Mon, 12 May 2008 21:11:02 -0400 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 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 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 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 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= Received: by 10.78.21.7 with SMTP id 7mr2065012huu.69.1210641039391; Mon, 12 May 2008 18:10:39 -0700 (PDT) Received: by 10.78.141.4 with HTTP; Mon, 12 May 2008 18:10:39 -0700 (PDT) Message-ID: <475204970805121810y5edc513by93a0fdbcd2ca557@mail.gmail.com> Date: Mon, 12 May 2008 21:10:39 -0400 From: David To: emacs-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5436_10895852.1210641039372" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Cc: emacs-pretest-bug@gnu.org Subject: Slow repainting, sluggish feeling emacs 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: , Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-0.41, requis 5, BAYES_00 -2.60, HTML_30_40 0.02, HTML_MESSAGE 0.88, NORMAL_HTTP_TO_IP 1.22, RCVD_BY_IP 0.07, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org ------=_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 MailScanner warning: numerical links are often malicious: 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 MailScanner warning: numerical links are often malicious: 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 MailScanner warning: numerical links are often malicious: 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-- ------------=_1217456104-22136-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,BAYES_00,SPF_HELO_PASS, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 233-done) by emacsbugs.donarmstrong.com; 30 Jul 2008 22:09:40 +0000 Received: from mk-outboundfilter-4.mail.uk.tiscali.com (mk-outboundfilter-4.mail.uk.tiscali.com [212.74.114.32]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6UM9Vxi020790; Wed, 30 Jul 2008 15:09:32 -0700 X-Trace: 117281078/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$F2S-ACCEPTED/f2s-freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArcEAGeDkEhTQxds/2dsb2JhbACBW4lEpxg X-IronPort-AV: E=Sophos;i="4.31,281,1215385200"; d="scan'208";a="117281078" X-IP-Direction: IN Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 30 Jul 2008 23:09:24 +0100 Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 1F80F1B7; Wed, 30 Jul 2008 23:09:58 +0100 (BST) Message-ID: <4890E682.6090108@gnu.org> Date: Wed, 30 Jul 2008 23:09:06 +0100 From: Jason Rumney User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 233-done@emacsbugs.donarmstrong.com Subject: Slow repainting, sluggish feeling emacs X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit reassign 233 emacs,w32 thanks It seems that the performance issues are resolved by using uniscribe's built in caching for glyph encoding, and avoiding explicit encoding in the gdi backend. ------------=_1217456104-22136-0--