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 08:51:46 +0800 Message-ID: References: <83obybqiv0.fsf@gnu.org> <83litfqgwx.fsf@gnu.org> <83ipojqdyq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316825521 29158 80.91.229.12 (24 Sep 2011 00:52:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2011 00:52:01 +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 Sat Sep 24 02:51:57 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 1R7GTE-0004nS-2F for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Sep 2011 02:51:56 +0200 Original-Received: from localhost ([::1]:59374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7GTD-0000IA-N7 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Sep 2011 20:51:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7GT7-0000I1-KT for help-gnu-emacs@gnu.org; Fri, 23 Sep 2011 20:51:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7GT6-0002g2-5m for help-gnu-emacs@gnu.org; Fri, 23 Sep 2011 20:51:49 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:45122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7GT4-0002fa-RX; Fri, 23 Sep 2011 20:51:46 -0400 Original-Received: by qyl38 with SMTP id 38so7950914qyl.0 for ; Fri, 23 Sep 2011 17:51:46 -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:content-transfer-encoding; bh=DYWqYq2Nt3e040JEIP0quCgoozUXWLRoluhxVbo6Ik0=; b=VNONLFWCxGRWax7/ZDO2L4vav4rZ0a4l8GuVNeSVc+s1isJIbjxNHfSfhLeOhjSWrW 8PZ0AafppnhsVT+BFyCkMUx4OShEV6Mv7FUyQuPI4MHjXe/NwwIf74oe530ed1OW4Tb+ Dr8D9ZOJnE5Y8diUDFUUw4sIdJ5GU7vkMTEqY= Original-Received: by 10.224.183.133 with SMTP id cg5mr3182740qab.57.1316825506253; Fri, 23 Sep 2011 17:51:46 -0700 (PDT) Original-Received: by 10.224.45.82 with HTTP; Fri, 23 Sep 2011 17:51:46 -0700 (PDT) In-Reply-To: <83ipojqdyq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.169 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:82323 Archived-At: filed: bug#9588: Acknowledgement (24.0.50; bidi-display-reordering slowing scrolling more than expected) On Sat, Sep 24, 2011 at 3:02 AM, Eli Zaretskii wrote: > > > Date: Sat, 24 Sep 2011 02:32:24 +0800 > > From: Le Wang > > Cc: help-gnu-emacs@gnu.org > > > > > > [1:text/plain Hide] > > > > On Sat, Sep 24, 2011 at 1:58 AM, Eli Zaretskii wrote: > > > > > > > > > next-line > > > What was the value of line-move-visual? =A0Under the default non-nil > > > setting, next-line is pretty expensive. > > > > > > > it was t, setting it to nil didn't help bibi-display much. > > > > > > > =A0> > =A0What kind of text? =A0What was the major mode in that buffe= r? > > > > > > > > emacs-lisp large file > > > > > > How large? > > > > > > > > allout.el >200k not very large. =A0large enough to scroll continuously = =A0for 10 > > seconds of so. > > > > Does it matter whether you are close to the file's beginning or to its > > > end? > > > > > > Does anything change if, after visiting the file, you first type > > > > > > =A0M-: (font-lock-default-fontify-buffer) RET > > > > > and only then try scrolling? > > > > > > > no. > > > > > > > > I also use full font-lock salad colors with "Consolas" font on Wind= ows. > > > > Also I use several minor-modes that add pre or post-command-hooks. > > > > > > If you remove those pre/post-command hooks, does the scrolling speed > > > improve significantly? =A0Can you find a hook that has the most profo= und > > > effect? > > > > > > no it does not. =A0the effect of all hooks is about 2-3% CPU. > > > > =A0> > Does it behave better if you set redisplay-dont-pause to a non-n= il > > > > > value? =A0This will be the default in Emacs 24. > > > > > > > > > > > > > It's not making a noticeable difference. > > > > > > With or without bidi-display-reordering? =A0I asked about its effect > > > when bidi-display-reordering is left at its default t value. > > > > > > > I tried it with bidi and without, difference wasn't huge. > > What you tell is very strange, because any reason I could think of are > contradicted by one or more of your answers. > > Please file a bug report with the following info: > > =A0. your full .emacs file (assuming the problem is not visible in > =A0 "emacs -Q"; if it is, no need for .emacs) > > =A0. the name of some Lisp file that is part of Emacs which exhibits a > =A0 similar slowdown, and that slowdown disappears when you turn off > =A0 bidi-display-reordering. =A0alternatively, if you can post the > =A0 specific Lisp file you used in this testing, that'd be best. > > With this info, I can look into the problem and see what causes it. > > Thanks in advance. > > -- Le