From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maxim Yegorushkin Newsgroups: gmane.emacs.help Subject: Re: emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled Date: Mon, 12 Nov 2012 16:23:50 +0000 Message-ID: References: <83haoux084.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352737454 5870 80.91.229.3 (12 Nov 2012 16:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 16:24:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 17:24:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1TXwoB-0000ZB-DZ for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 17:24:23 +0100 Original-Received: from localhost ([::1]:49012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwo1-0002yI-JW for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 11:24:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwnt-0002xv-31 for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 11:24:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXwnq-0006vj-0y for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 11:24:05 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwnp-0006v3-Ps for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 11:24:01 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TXwnx-0000QF-PR for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 17:24:09 +0100 Original-Received: from office.lon.olivetreesecurities.com ([85.92.217.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2012 17:24:09 +0100 Original-Received: from maxim.yegorushkin by office.lon.olivetreesecurities.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2012 17:24:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: office.lon.olivetreesecurities.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 In-Reply-To: <83haoux084.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:87659 Archived-At: On 12/11/12 16:19, Eli Zaretskii wrote: >> From: Maxim Yegorushkin >> Date: Mon, 12 Nov 2012 12:49:51 +0000 >> >> I have 9Mb text file with 90000+ lines in it. When opening this file in >> emacs-24.1.1 and scrolling to line 5000 and onwards the scrolling >> becomes very slow and there is a long delay after I press PageDown and >> emacs updates the view. >> >> I heard that font lock may cause this so I disabled font lock in that >> buffer. Disabling font lock doesn't resolve the issue or speed things up >> a bit. >> >> The contents of the file look like this: >> >> 2012-10-09 08:35:28.217216000 167.150000 44035 >> 2012-10-09 08:35:28.217216000 167.200000 2859 >> 2012-10-09 >> 08:35:28.217216000 167.250000 54888 >> 2012-10-09 08:35:28.233155000 167.150000 66035 >> 2012-10-09 >> 08:35:28.233155000 167.250000 44404 >> >> (long line wrapped in the above). >> >> I.e. there is a timestamp on each line of it in the form of YYYY-MM-DD >> HH:MM:SS.nnnnnnnnn. >> >> I almost accidentally replaced all 2012-10-09 with YYYY-MM-DD in the >> file and that fixed the issue, the scrolling became swift again. >> >> Do you guys have any clues what may be causing this scrolling slowness >> and why replacing ISO dates with YYYY-MM-DD makes scrolling so much >> faster? (once again I have font lock disabled in that buffer). > > Does scrolling become faster if you type this: > > M-x set-variable RET bidi-paragraph-direction RET left-to-right RET > > If it does, It does indeed fixes the problem. > then I believe this is an inefficiency in the > bidirectional display engine that is already fixed in the development > sources, and will be part of the upcoming Emacs 24.3 release. If you > can try the development sources, I think you should see that this > problem is gone. Thanks a lot Eli. I will stick this customization in .emacs for now. -- Maxim