From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Re: 23/NS: redraws according to mouse-face are slow Date: Fri, 24 Apr 2009 09:12:46 +0545 Message-ID: <139B721E-A1B4-4256-B202-D4472C0331FB@gmail.com> References: <4383E9F6-9B66-4DA4-AA3C-D602EB059B97@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240543573 20080 80.91.229.12 (24 Apr 2009 03:26:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 03:26:13 +0000 (UTC) Cc: 2530@emacsbugs.donarmstrong.com, Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 24 05:27:32 2009 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 1LxC4Y-0001hI-Ar for ged-emacs-devel@m.gmane.org; Fri, 24 Apr 2009 05:27:30 +0200 Original-Received: from localhost ([127.0.0.1]:44111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxC39-0000fi-2F for ged-emacs-devel@m.gmane.org; Thu, 23 Apr 2009 23:26:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxC34-0000fb-PY for emacs-devel@gnu.org; Thu, 23 Apr 2009 23:25:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxC34-0000fP-2O for emacs-devel@gnu.org; Thu, 23 Apr 2009 23:25:58 -0400 Original-Received: from [199.232.76.173] (port=38740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxC33-0000fK-QC for emacs-devel@gnu.org; Thu, 23 Apr 2009 23:25:57 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.156]:4189) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxC33-0001cq-Hm for emacs-devel@gnu.org; Thu, 23 Apr 2009 23:25:57 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 5so629900ywm.66 for ; Thu, 23 Apr 2009 20:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=5Ar4ORVxm/3jU4OItVBqIDYk+Lj+dHsG4oYZdLr7nws=; b=k9qCT/4UrFqocedGivowDuQacYZXpBVAi6x2Guc6Tn3c0sH4tjd6pcHXKGA7ceyIch eppCJQWClOqcPs6MiYXWbQkpFwVT4JhqYPvbrJPpHjQwmYOlppwjCoIvAU19976yv/eo 8/YV2pVqrh1AW2enIbkiPku3EV4MLghSCtl5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=q3HDbQRjowQokv0Nv69qaT6qmSrhmZSp8YzJWXJ/Y4P8wmsEWR2YwQqH+54Yni5p5i /9GWET7c1wEfTTCsQpskpOVze9m4m0drnItllfPvIeK6KKK/siln0HfOQtJBvcQDuMFv PyieUxas35pFP2LePJwNVbJgnu3aTQEep607w= Original-Received: by 10.90.89.8 with SMTP id m8mr2094578agb.23.1240543556688; Thu, 23 Apr 2009 20:25:56 -0700 (PDT) Original-Received: from ?192.168.108.203? (gprs-prx.spicenepal.com [116.68.208.84]) by mx.google.com with ESMTPS id 21sm1482842agd.51.2009.04.23.20.25.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Apr 2009 20:25:55 -0700 (PDT) In-Reply-To: <4383E9F6-9B66-4DA4-AA3C-D602EB059B97@gmail.com> X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/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:110446 Archived-At: On Apr 20, 2009, at 11:46 PM, David Reitter wrote: > On Mar 4, 2009, at 4:29 PM, Adrian Robert wrote: > >>> I find that the redisplay of overlays that happens when the mouse is >>> moved into an overlay with a mouse-face property are much slower in >>> Emacs 23 (NS, under Cocoa/OS X). It is pretty much a nasty >>> animation >>> - every layer is redrawn from left to right, it seems, and every >>> step >>> is visible. It seems that background is drawn first, and then the >>> text over it. >> >> Yes, this has been an issue for years from Emacs on Aqua on and it >> completely baffles me. The NS code for handling mouse face is >> identical to other platforms as far as I can tell, so I don't know >> why the issue occurs only here. And the animation is far slower >> than any code on the NS side could be taking. It must be a bug >> somewhere on the core display side that is exposed because >> (guessing here) the event loop under NS is done slightly differently. > > Does anyone have an idea how to fix issue 2530? I think this > slowness is quite painful. In my case, it is the tabbar.el variant > that I'm using that causes this - I'm using several overlays (for a > tab-close button, for instance) that get redrawn one by one. I > would imagine that this will annoy users in other use cases as well. Or to ask it another way, is there any reason anyone can think of that redisplay would force calls through the x_draw_glyph_string pathway once for every character when overlays are present?