unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabian Ezequiel Gallina <galli.87@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>,
	Deniz Dogan <deniz.a.m.dogan@gmail.com>
Subject: Re: Emacs awfully slow on some files
Date: Thu, 13 Aug 2009 19:09:10 -0300	[thread overview]
Message-ID: <9de1a5ef0908131509j6ba1681ra1357a058d607382@mail.gmail.com> (raw)
In-Reply-To: <jwvljlq75s7.fsf-monnier+emacs@gnu.org>

2009/8/11 Stefan Monnier <monnier@iro.umontreal.ca>:
>> 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?
>
> Yes.
>
>

Where should I start looking at in order to try fix this. I really
would like to be able to use Emacs on ugly files too.

>> 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.
>

Actually today I was editing to an SQL file which had really long
lines and was slow as hell, there are several modes that should
support very long lines without making Emacs that slow not only
fundamental-mode.

I guess this should be a priority thing to fix, I'll try to see if I
can find some solution, unfortunately my C knowledge is not that good
and I'm new to Emacs Lisp but I will give it a try and let you know if
I can do some enhancement.

>
>> `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).
>
>
>        Stefan
>



Best Regards,
-- 
Fabián E. Gallina




  parent reply	other threads:[~2009-08-13 22:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10 18:04 Emacs awfully slow on some files Deniz Dogan
2009-08-10 19:01 ` Eli Zaretskii
2009-08-11 15:04 ` Stefan Monnier
2009-08-11 15:34   ` Deniz Dogan
2009-08-13 22:09   ` Fabian Ezequiel Gallina [this message]
2009-08-14  8:09     ` David Kastrup
2009-08-14  8:43       ` Miles Bader
2009-08-14  9:52         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9de1a5ef0908131509j6ba1681ra1357a058d607382@mail.gmail.com \
    --to=galli.87@gmail.com \
    --cc=deniz.a.m.dogan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).