From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: new emacs24 settings (was: Re: Performance problems (CPU 100%) with NULs in files) Date: Sat, 24 Sep 2011 01:44:03 +0800 Message-ID: References: <83obybqiv0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3030bb01eca8dd04ad9f5a05 X-Trace: dough.gmane.org 1316799865 427 80.91.229.12 (23 Sep 2011 17:44:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2011 17:44:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 23 19:44:19 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R79nP-0000GE-5X for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Sep 2011 19:44:19 +0200 Original-Received: from localhost ([::1]:34588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R79nJ-0007OJ-8f for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Sep 2011 13:44:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R79nD-0007Ns-2g for help-gnu-emacs@gnu.org; Fri, 23 Sep 2011 13:44:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R79nC-0005PZ-1V for help-gnu-emacs@gnu.org; Fri, 23 Sep 2011 13:44:07 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:48801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R79nA-0005Ob-9W; Fri, 23 Sep 2011 13:44:04 -0400 Original-Received: by qyk27 with SMTP id 27so4404370qyk.0 for ; Fri, 23 Sep 2011 10:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ES4VvLWHmvpB6W16tk56FL6D5dT5YrHw9oAspAmfEOU=; b=r6AdoTwO+oy2Ap0OI9TOjUJ38WuEoMpSQQrZzD+8KNpq9a21kMcQFd7pJQoPe1F+N2 lVYjT8cXtmchn9+6ixP/G8NvMLmmntvN7f7gpxwHoDP+lFpnL3CVD0Xouu0QvZNMv9eC ned2acftmOG0aRmFS/2mR5JbtGDFxdwiF6Glw= Original-Received: by 10.224.174.70 with SMTP id s6mr3348117qaz.107.1316799843706; Fri, 23 Sep 2011 10:44:03 -0700 (PDT) Original-Received: by 10.224.45.82 with HTTP; Fri, 23 Sep 2011 10:44:03 -0700 (PDT) In-Reply-To: <83obybqiv0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82310 Archived-At: --20cf3030bb01eca8dd04ad9f5a05 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Sep 24, 2011 at 1:16 AM, Eli Zaretskii wrote: > > Date: Sat, 24 Sep 2011 00:18:00 +0800 > > From: Le Wang > > Cc: help-gnu-emacs@gnu.org > > > > > (setq-default bidi-display-reordering nil) > > > > > > > This helped me with my slow scroll issues. Holding down arrow on a fully > > maximized frame on a 1080p monitor was spiking my duo-core CPU to 20-25%. > > Scrolling text. 50% of one CPU. Just to scroll text. > > Scrolling how (by what commands)? next-line > What kind of text? What was the > major mode in that buffer? emacs-lisp large file I also use full font-lock salad colors with "Consolas" font on Windows. Also I use several minor-modes that add pre or post-command-hooks. > Some modes are more expensive in redisplay > than others. It is impossible to tell whether 50% of a core is > unreasonably high without knowing these details. > Additionally I have these scroll related settings. Some of which I added after realizing scrolling was slow, others I had previously to enable smooth scrolling. (setq hscroll-step 1 scroll-conservatively 10000 scroll-preserve-screen-position t auto-window-vscroll nil ; speedup down scroll scroll-margin 10 redisplay-dont-pause t ; this will be default in emacs24 ) > > And it would start jumping around almost right away. > > Does it behave better if you set redisplay-dont-pause to a non-nil > value? This will be the default in Emacs 24. > It's not making a noticeable difference. Although it sounds like a good idea. To be clear, I get perfectly smooth scrolling now with bidi-display-ordering set to nil. And my CPU usage doesn't exceed 12% while scrolling. So things are good now. -- Le --20cf3030bb01eca8dd04ad9f5a05 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sat, Sep 24, 2011 at 1:16 AM, Eli Zaretskii <= span dir=3D"ltr"><eliz@gnu.org> wrote:
> Date: Sat, 24 Sep 2011 00:18:00 +0800
> From: Le Wang <l26wang@gmail.c= om>
> Cc: help-gnu-emacs@gnu.org
>
> > (setq-default bidi-display-reordering =A0nil)
> >
>
> This helped me with my slow scroll issues. =A0Holding down arrow on a = fully
> maximized frame on a 1080p monitor was spiking my duo-core CPU to 20-2= 5%.
> Scrolling text. =A050% of one CPU. =A0Just to scroll text.

Scrolling how (by what commands)?
=A0What = kind of text? =A0What was the
major mode in that buffer?
Some mod= es are more expensive in redisplay
than others. =A0It is impossible to tell whether 50% of a core is
unreasonably high without knowing these details.
> And it would start jumping around almost right away.

Does it behave better if you set redisplay-dont-pause to a non-nil value? =A0This will be the default in Emacs 24.
To be clear, I get perfectly smooth scrolling now with = bidi-display-ordering set to nil.=A0 And my CPU usage doesn't exceed 12= % while scrolling.=A0 So things are good now.

--
Le
--20cf3030bb01eca8dd04ad9f5a05--