* emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled
@ 2012-11-12 12:49 Maxim Yegorushkin
2012-11-12 14:33 ` Peter Dyballa
2012-11-12 16:19 ` Eli Zaretskii
0 siblings, 2 replies; 6+ messages in thread
From: Maxim Yegorushkin @ 2012-11-12 12:49 UTC (permalink / raw)
To: help-gnu-emacs
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).
-- Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled
2012-11-12 12:49 emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled Maxim Yegorushkin
@ 2012-11-12 14:33 ` Peter Dyballa
2012-11-12 15:44 ` Maxim Yegorushkin
2012-11-12 16:19 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2012-11-12 14:33 UTC (permalink / raw)
To: Maxim Yegorushkin; +Cc: help-gnu-emacs
Am 12.11.2012 um 13:49 schrieb Maxim Yegorushkin:
> 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?
What file type is the file, what is its text encoding, and which modes are active in that buffer?
--
Greetings
Pete
Real Time, adj.:
Here and now, as opposed to fake time, which only occurs there and then.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled
2012-11-12 12:49 emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled Maxim Yegorushkin
2012-11-12 14:33 ` Peter Dyballa
@ 2012-11-12 16:19 ` Eli Zaretskii
2012-11-12 16:23 ` Maxim Yegorushkin
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2012-11-12 16:19 UTC (permalink / raw)
To: help-gnu-emacs
> From: Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
> 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, 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled
2012-11-12 16:19 ` Eli Zaretskii
@ 2012-11-12 16:23 ` Maxim Yegorushkin
2012-11-12 16:29 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Maxim Yegorushkin @ 2012-11-12 16:23 UTC (permalink / raw)
To: help-gnu-emacs
On 12/11/12 16:19, Eli Zaretskii wrote:
>> From: Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
>> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled
2012-11-12 16:23 ` Maxim Yegorushkin
@ 2012-11-12 16:29 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2012-11-12 16:29 UTC (permalink / raw)
To: help-gnu-emacs
> From: Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
> Date: Mon, 12 Nov 2012 16:23:50 +0000
>
> > 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.
If you never expect to have to display bidirectional scripts, like
Arabic, you can make that the default:
(setq-default bidi-paragraph-direction 'left-to-right)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-12 16:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 12:49 emacs-24.1.1 slow scrolling in Fundamental mode with font lock disabled Maxim Yegorushkin
2012-11-12 14:33 ` Peter Dyballa
2012-11-12 15:44 ` Maxim Yegorushkin
2012-11-12 16:19 ` Eli Zaretskii
2012-11-12 16:23 ` Maxim Yegorushkin
2012-11-12 16:29 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.