From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.devel Subject: Re: bug#2530: 23/NS: redraws according to mouse-face are slow Date: Fri, 15 Jan 2016 23:15:58 -0500 Message-ID: References: <4383E9F6-9B66-4DA4-AA3C-D602EB059B97@gmail.com> <139B721E-A1B4-4256-B202-D4472C0331FB@gmail.com> <87d4aowc1l.fsf@cyd.mit.edu> <2E6E5869-2F70-4AF5-A917-7EA863D6BD42@gmail.com> <1ACB40A8-4422-4B9A-A0F7-FE0B9C738299@gmail.com> <87ab5rvds7.fsf@cyd.mit.edu> <48600A00-7FAE-4B80-8B3D-6615230918AF@gmail.com> <87r3hjrgc7.fsf@motte.fritz.box> <837fjbgumi.fsf@gnu.org> 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 1452917781 26398 80.91.229.3 (16 Jan 2016 04:16:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2016 04:16:21 +0000 (UTC) Cc: 2530@debbugs.gnu.org, ian@digg.com, Christian Kruse , david.reitter@gmail.com, cyd@stupidchicken.com, emacs-devel@gnu.org, adrian.b.robert@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 16 05:16:19 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aKIHi-0002s8-DQ for ged-emacs-devel@m.gmane.org; Sat, 16 Jan 2016 05:16:18 +0100 Original-Received: from localhost ([::1]:49777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKIHh-0000pp-Hy for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 23:16:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKIHU-0000pc-3k for emacs-devel@gnu.org; Fri, 15 Jan 2016 23:16:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKIHQ-0007VG-Rd for emacs-devel@gnu.org; Fri, 15 Jan 2016 23:16:04 -0500 Original-Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:34527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKIHQ-0007VC-LI; Fri, 15 Jan 2016 23:16:00 -0500 Original-Received: by mail-qg0-x234.google.com with SMTP id 6so444274691qgy.1; Fri, 15 Jan 2016 20:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=qd6q1KnpRnn62gEDHflY/dA0RxTEnsQI8Xs5eAh5ATg=; b=HQw+hVXaxp+c7VxKWISSVVfDSeTvvGagpC6CNrz5Ef8xHt5N7V64s6vTM98MGwcQ9i SsJDqktKWtJrbqEdwF2INAK7INf6R5teW0PtrEw1AIMYrDl/342+wwe3+3wJYNPKLUon 3ZSfLJNujVOTHsZ468jJQPVEvLpCJsKC3Lo0UA8Lk1wzxj5hHXkQAKmaKRAQGKeumSVZ Ysz+ZXbB98xHjavuaXSOLnrHr7CaIpGINpygQ8KNaxwP4sBUgR4stvzm9RQuosTu7z0Z pXcBxAgBvCiquJ5hwPT4NiCougE96Aw5BhHKfV4oyI1sIyB/ULAmYm11/wommPX5aKp2 hj9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=qd6q1KnpRnn62gEDHflY/dA0RxTEnsQI8Xs5eAh5ATg=; b=LTzfH/e50QOokArvi9MITxGEfn0E5/ROkB2cvOmDoWwAeCHY6ViNUj0WCzpNCjtG5X ni+OO47FyV5x4dGbIRCjqwnTqQiiY03MEtuyWhYPtwTT/oPU9swcLm7ON0YzEaXZWdFe T76BSqJGlk2Vef/9yU39ZF1P12OYcXK8xwtVxN1Uj+p8xcPxSdsXwN/MuBO/drep9/JH WFfGODlE7pM+k1ykc8EC9gEvC8LzzUt/E2WnyRk+BreI5/oA7Un4chtW+etiZ/SWkkN+ zXKA7Lo4MrBIY0LzPYXom7eCNLTZUFFLErCYILWItfBMlYpVJ7OLRMb89m+74zCX/FTA Q6Wg== X-Gm-Message-State: ALoCoQmcjbg1nk4tqfZwrPJhn3L6U/lyytWonk8A/IG4W4ZPYslqVZCuFu3jbaEgBtXlweH0cn4F4hV0yEWV8XMKVD+TUqxmrw== X-Received: by 10.140.216.20 with SMTP id m20mr18764236qhb.90.1452917760256; Fri, 15 Jan 2016 20:16:00 -0800 (PST) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id j23sm5796888qge.23.2016.01.15.20.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 20:15:59 -0800 (PST) In-Reply-To: <837fjbgumi.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jan 2016 09:38:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198184 Archived-At: It seems there is some agreement that there isn't a serious problem anymore. I'll close these bugs as doneunreproducible. Flickerings or slowness in elisp should probably be considered a different, separate bug. Eli Zaretskii writes: >> From: Christian Kruse >> Date: Thu, 14 Jan 2016 22:39:20 +0100 >> Cc: 2530@debbugs.gnu.org, Chong Yidong , >> Adrian Robert , >> Ian Eure , Emacs-Devel devel >>=20 >> Compared to Linux (the Linux hardware is slower, a Notebook from 2011 >> and the OS X notebook is a Macbook Pro Retina from 2014), the OS X >> version is *pretty* slow. While everything I do with Emacs is nearly >> instant when using Linux there is a notably delay when using Emacs with >> OS X. > > That's normal: GNU/Linux is significantly more efficient than other > modern OSes. Nothing related to Emacs, really. > >> The worst example is Magit, which I already profiled because it is >> *so* slow: when using Linux `magit-status` shows up instantly. It takes >> about 1.5 seconds when using OS X (hold it, I am aware that this is not >> the place to discuss Magit performance, it is just an example :-) Every >> buffer with lots of lines (e.g. a notmuch buffer with 26k mails, my >> archive of the pg-hackers list) is lightning fast when using Linux, but >> takes round about 30 seconds when using OS X. > > Sounds like you describe a situation that is file I/O extensive. If > so, again, there's little wonder you see much faster operation on > GNU/Linux. If you'd say the same about comparison with MS-Windows, > say, then it would be something worth investigating. > >> Although I=E2=80=99m not sure that it is only the rendering engine (of c= ourse it >> could also be the elisp interpreter being slower) it occurs to me that >> it plays its part: especially redraw actions seem to be very slow. For >> example mu4e is unbearable slow when displaying maildirs with a lot of >> mails (e.g. the 26k mails maildir I mentioned above) but works fine for >> small mailboxes; and while the content of the maildir is loading, the >> buffer is flickering all the time as if it gets redrawn all the time. > > The flickering you describe can only be triggered by > platform-independent parts of the display engine, so again, this isn't > OS X or NS specific, AFAIU. > > Emacs comes with a trace-redisplay command (compiled only if you > configure Emacs --enable-testing=3D'yes,glyphs'), so if someone wants to > test the hypothesis that such flickering is specific to NS, they could > run the same scenario on OS X and on another system, after invoking > trace-redisplay, and compare the outputs. I'd expect them to be > identical (except for the addresses it prints).