GNU bug report logs -
#6364
Windows: Emacs 23 slow with long lines and raster fonts
Previous Next
Reported by: bogossian <at> mail.com
Date: Sun, 6 Jun 2010 18:41:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
the Windows build of Emacs 23 is extremely slow when scrolling in a
buffer
containing long lines if a bitmap font is used.
For example, scrolling though a file made of 200 lines of 1000
characters
each feels choppy.
Doing the same with a file containing very long lines (like tens of
thousand
characters) can make Emacs hang for seconds or minutes, making it
practically
unusable.
Editing files with such long lines is not absurd, various types of
computer
generated files (log files, export files, dumps, ...) can have very very
long lines.
These bad performances are a regression, Emacs 21 and Emcas 22 were much
faster in the same conditions.
To illustrate this regression, and to show it's related to the use of
bitmap
fonts, I've made this very simple and easy to reproduce benchmark:
I built an 8MB file containing a single line (the content of the file
doesn't matter). I opened the file in emacs, and then I hit "ESC >" to
reach
the end of the buffer. I measured the time it takes for emacs to refresh
from the moment I typed the macro.
(Test setup: Athlon XP 2GHz, Windows XP SP3)
If Emacs is started with the command line "emacs -q", here are the
results:
Emacs 21.3.1: 8s
Emacs 22.3.1: 14s
Emacs 23.2.1: 63s (uniscribe backend)
Emacs 23 can be made a little faster by forcing the gdi rendering
backend
with the command line "emacs -q -xrm Emacs.FontBackend:gdi":
Emacs 23.2.1: 38s (gdi backend)
Now, if I repeat the same test using the command "emacs -q -fn
Courier", to
use a bitmap font, things are getting really bad for Emacs 23:
Emacs 21.3.1: 8s (raster font)
Emacs 22.3.1: 14s (raster font)
Emacs 23.2.1: 515s (raster font, gdi backend)
Regards,
Pierre
PS: this issue has been discussed on the emacs-devel mailing list:
http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00478.html
This bug report was last modified 11 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.