[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs awfully slow on some files

From: Stefan Monnier
Subject: Re: Emacs awfully slow on some files
Date: Tue, 11 Aug 2009 11:04:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> I have a file which is 1 MB long and all of the content is on a single
> line.  Using Emacs on this file is pretty much impossible due to the
> super-sluggish behavior.  It's embarrassing.  Why is this?

It's probably a combination of various pieces of code which make
incorrect assumptions about the expected line length.

> Can it be fixed?


> This is with fundamental-mode, by the way.

Good: in several other modes, I could argue that such a long line is
a bug, but fundamental-mode should cater to weird files.

> `forward-char' and `backward-char' are pretty much the only usable
> commands, even "C-h f" (describe-function) is extremely slow in
> this scenario.

Please report a bug for it via M-x report-emacs-bug, and ideally include
some recipe (in case it depends on the actual content of the long line,
for example, or if it needs more than "emacs -Q" to reproduce).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]