From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Lundin Newsgroups: gmane.emacs.bugs Subject: bug#12463: 24.2; pos-visible-in-window-p gets slower over time Date: Tue, 18 Sep 2012 10:05:34 -0500 Message-ID: <87k3vrnzgh.fsf@fastmail.fm> References: <87wqzs1a4c.fsf@queen.i-did-not-set--mail-host-address--so-tickle-me> <83mx0n22p0.fsf@gnu.org> <5511358.p8J1TLefsG@queen> 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 1347983462 3496 80.91.229.3 (18 Sep 2012 15:51:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 15:51:02 +0000 (UTC) Cc: 12463@debbugs.gnu.org To: =?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 17:51:06 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 1TE04i-00013a-3h for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 17:51:00 +0200 Original-Received: from localhost ([::1]:52703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE04d-0003Tw-S9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 11:50:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE04R-0002wN-HW for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 11:50:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TE04Q-0001gC-0J for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 11:50:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE04P-0001g2-SJ for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 11:50:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TE05i-00040Z-5E for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 11:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Lundin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Sep 2012 15:52:02 +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.134798348715295 (code B ref 12463); Tue, 18 Sep 2012 15:52:02 +0000 Original-Received: (at 12463) by debbugs.gnu.org; 18 Sep 2012 15:51:27 +0000 Original-Received: from localhost ([127.0.0.1]:42016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TE057-0003yX-Ca for submit@debbugs.gnu.org; Tue, 18 Sep 2012 11:51:27 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:53299) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDzO4-0001gQ-JM for 12463@debbugs.gnu.org; Tue, 18 Sep 2012 11:06:58 -0400 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 9061A20B56; Tue, 18 Sep 2012 11:05:35 -0400 (EDT) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 18 Sep 2012 11:05:35 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=imapmail.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=S6rT9h936DvzxJEWAxd2RJhILCc=; b=bXE7Cq4XG+BFiNW4QRwhZNuOO0m4 yHJyYcxd9HQ5t4ScnBjrcWP+BWVBFycDpUXlQmijk6Hw1EC9qzgEdXpCpo01LAzY tIRrvJ/ZRZVx6z1kD9jVkinO3NdjSbbgc9HgGhdbMHq/9tLku9Kw+NtLI73QeVT/ AAtjz6CpEysKlyo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=S6rT9h936DvzxJEWAxd2RJ hILCc=; b=r1ZzLpOjSDQX1UywwE3McdWoDZBMNBzlutEDS7Ev1KtETz9frTM3+t Cx3i8yOwcWQD6E4dUj36/djI9A4fBw/Nu2vf1+RZRAXr9um/DYy0A4E6pS1LKRyf 9POjqshuNQorWd4CrfKeCAIs+r1iySNBLy9V62lTg4LUyvK7ptDhI= X-Sasl-enc: h6EYV8e7rgRk2i0JXHRfubFtr/tMUVf2zLlWXvupYbQo 1347980735 Original-Received: from archdesk (unknown [209.147.96.226]) by mail.messagingengine.com (Postfix) with ESMTPA id 3B684483517; Tue, 18 Sep 2012 11:05:35 -0400 (EDT) In-Reply-To: <5511358.p8J1TLefsG@queen> ("=?UTF-8?Q?J=C3=B6rg?= Walter"'s message of "Tue, 18 Sep 2012 11:46:13 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-Mailman-Approved-At: Tue, 18 Sep 2012 11:51:23 -0400 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:64556 Archived-At: J=C3=B6rg Walter writes: > I've done some additional tests: It does *not* happen with Ubuntu's > emacs23 (23.3.1). Just for cross-checking, I ran Win32 emacs 24.2 once > via wine and once in VirtualBox+WinXP, in both cases no bug. > > It *does* happen with Ubuntu's emacs24 (24.1.1), which is where I > first noticed the problem. It also happens on all X toolkits (gtk, > gtk3, athena, lucid). Does it happen when using x instead of xft as the font backend? I have found that xft rendering is sluggish in emacs 24 (on Arch Linux, in my case). A single call to pos-visible-in-window-p can take as much as 0.3 secs according to ELP (e.g., when opening an outline heading, especially if it contains multi-byte encodings). This slowdown does not occur when xft is turned off (i.e, by placing "Emacs.FontBackend: x" in .Xresources). AFAICT, the bottleneck seems to be in the emacs xft rendering. I tested this by opening two frames showing the same outline buffer. One of the frames was a X frame using xft fonts; another frame was running in a console (urxvt, which also uses xft rendering but shows no similar slowdown). When opening an outline entry containing multibyte characters, it appeared instantly in the console frame but only after a substantial lag on the X frame. In other words, the culprit may be something other than pos-visible-in-window-p. For instance, when running emacs on x with xft enabled, I find it can take as much as 3-4 seconds (according to elp) to create a new frame with C-x 5 2. When running emacs on x with xft disabled, new frames are created immediately. Best, Matt