From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12463: 24.2; pos-visible-in-window-p gets slower over time Date: Tue, 18 Sep 2012 10:46:35 +0300 Message-ID: <83mx0n22p0.fsf@gnu.org> References: <87wqzs1a4c.fsf@queen.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1347954415 5826 80.91.229.3 (18 Sep 2012 07:46:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 07:46:55 +0000 (UTC) Cc: 12463@debbugs.gnu.org To: jwalt@garni.ch (=?UTF-8?Q?J=C3=B6rg?= Walter) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 18 09:46:59 2012 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 1TDsWI-000412-Dl for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 09:46:58 +0200 Original-Received: from localhost ([::1]:46270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDsWB-0003V9-U3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 03:46:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDsW9-0003Uv-Sk for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 03:46:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDsW3-0002xG-Lb for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 03:46:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDsW3-0002wV-He for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 03:46:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TDsXJ-0004dE-Ol for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 03:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Sep 2012 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12463 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12463-submit@debbugs.gnu.org id=B12463.134795447017786 (code B ref 12463); Tue, 18 Sep 2012 07:48:01 +0000 Original-Received: (at 12463) by debbugs.gnu.org; 18 Sep 2012 07:47:50 +0000 Original-Received: from localhost ([127.0.0.1]:40792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDsX7-0004cp-Qa for submit@debbugs.gnu.org; Tue, 18 Sep 2012 03:47:50 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:33644) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDsX4-0004cg-VG for 12463@debbugs.gnu.org; Tue, 18 Sep 2012 03:47:48 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MAJ00E00C3WKS00@a-mtaout22.012.net.il> for 12463@debbugs.gnu.org; Tue, 18 Sep 2012 10:46:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAJ00E3WC9E0ZM0@a-mtaout22.012.net.il>; Tue, 18 Sep 2012 10:46:26 +0300 (IDT) In-reply-to: <87wqzs1a4c.fsf@queen.i-did-not-set--mail-host-address--so-tickle-me> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.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@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64542 Archived-At: > From: jwalt@garni.ch (J=C3=B6rg Walter) > Date: Tue, 18 Sep 2012 01:51:31 +0200 >=20 > Emacs gets arbitrarily slow over time. I was able to narrow down th= e > problem to `pos-visible-in-window-p', which is, unfortunately, call= ed as > part of lots of common commands. That function call is getting slow= er > each time it is called, if two conditions are met. >=20 > The first condition I was able to pin is the value of > `header-line-format'. The bug only occurs when it includes an image= (as > is common when using tabbar.el). >=20 > It also depends on buffer contents, although I was not able to dete= rmine > a minimal condition. It happens with the fancy splash screen, but n= ot > with the scratch buffer. I've tried inserting an image and using fa= ce > `variable-pitch', but those two aren't enough to trigger the bug. >=20 > This code sample demonstrates the bug. Run it in an "emacs -Q" inst= ance > via `eval-buffer' and be amazed at the unbounded (linear) growth of > execution time for each iteration: >=20 > (defun bug () > "trigger bug related to pos-visible-in-window-p" > (interactive) > (benchmark 1000 '(pos-visible-in-window-p t))) >=20 > (fancy-startup-screen) > (setq header-line-format '((#("x" 0 1 (display (image :type pbm :da= ta "P2 1 1 255\n")))))) > (goto-char (point-min)) > (while t (bug)) I cannot reproduce the slow-down on my machine (Windows XP). What I see is constant time, give or take 2%, with no growth trend whatsoever. I don't have access to GUI sessions on any configuration close to thi= s: > In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10= ) > of 2012-09-17 on queen > Windowing system distributor `The X.Org Foundation', version 11.0.1= 1103000 > Configured using: > `configure '--with-gif=3Dno'' Can anyone else reproduce this? J=C3=B6rg, does this happen with earlier versions of Emacs, like 24.1= or 23.3?