From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug#2530: 23/NS: redraws according to mouse-face are slow Date: Fri, 15 Jan 2016 09:38:29 +0200 Message-ID: <837fjbgumi.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452843539 21926 80.91.229.3 (15 Jan 2016 07:38:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2016 07:38:59 +0000 (UTC) Cc: 2530@debbugs.gnu.org, ahyatt@gmail.com, david.reitter@gmail.com, cyd@stupidchicken.com, ian@digg.com, emacs-devel@gnu.org, adrian.b.robert@gmail.com To: Christian Kruse Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 15 08:38:52 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 1aJyyB-0000IY-Sa for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 08:38:52 +0100 Original-Received: from localhost ([::1]:45679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJyyA-0002Nd-UW for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2016 02:38:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJyxx-0002NV-60 for emacs-devel@gnu.org; Fri, 15 Jan 2016 02:38:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJyxt-0001dj-V9 for emacs-devel@gnu.org; Fri, 15 Jan 2016 02:38:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJyxt-0001dW-RJ; Fri, 15 Jan 2016 02:38:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4510 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJyxs-0005h4-DU; Fri, 15 Jan 2016 02:38:32 -0500 In-reply-to: <87r3hjrgc7.fsf@motte.fritz.box> (message from Christian Kruse on Thu, 14 Jan 2016 22:39:20 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:198168 Archived-At: > 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 > > 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’m not sure that it is only the rendering engine (of course 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='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).