unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Randy Yates <yates@digitalsignallabs.com>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: emacs takes exhorbitantly long to read long, one-line files.
Date: Mon, 20 May 2013 07:03:08 -0400	[thread overview]
Message-ID: <877git6hhv.fsf@digitalsignallabs.com> (raw)
In-Reply-To: <5199E19A.3020503@yandex.ru> (Dmitry Antipov's message of "Mon, 20 May 2013 12:40:58 +0400")

Dmitry Antipov <dmantipov@yandex.ru> writes:

> On 05/19/2013 07:52 AM, Randy Yates wrote:
>
>> I have a file (a matlab .m file of a vector of data) that is all on
>> one line and about 2 MB:
>>
>>    http://www.digitalsignallabs.com/dspin.m
>>
>> emacs takes a very long time (6 minutes?) to read this in, and
>> practically becomes unusable in the mean time.
>
> In this particular case, Emacs just thinks that your file is an Objective-C
> source code, and tries to fontify it accordingly. This attempt implies a lot
> of buffer scans, and substantial amount of them may be slow for the very
> long lines. Since I suspect that you don't want to edit this as Obj-C, try:
>
> emacs --eval "(setq auto-mode-alist (cons '(\"\\.m\" .
> fundamental-mode) auto-mode-alist))" dspin.m

I already had that in my init.el. I've also tried creating an empty
file and setting it to fundamental-mode. In both these cases the 
behavior is the same. 

I did notice that emacs is faster - but still unusably slow - when
toggle-truncate-lines is true.
-- 
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com



  reply	other threads:[~2013-05-20 11:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19  3:52 emacs takes exhorbitantly long to read long, one-line files Randy Yates
2013-05-19 14:41 ` Eli Zaretskii
2013-05-20  8:40 ` Dmitry Antipov
2013-05-20 11:03   ` Randy Yates [this message]
2013-05-20 11:27     ` Dmitry Antipov
2013-05-20 14:32       ` Karl Fogel
2013-05-20 15:59         ` Eli Zaretskii
2013-05-20 16:25           ` Dmitry Antipov
2013-05-20 16:41             ` Eli Zaretskii
2013-05-20 21:43           ` Randy Yates
2013-05-21  2:21             ` Stephen J. Turnbull
2013-05-21  2:47             ` Eli Zaretskii
2013-05-21  7:57           ` Ulrich Mueller
2013-05-21 10:20             ` Dmitry Antipov
2013-05-21 12:06               ` Ulrich Mueller
2013-05-21 17:21                 ` Eli Zaretskii
2013-05-21 17:18               ` Eli Zaretskii
2013-05-21 17:55             ` Eli Zaretskii
2013-05-21 18:03               ` Randy Yates
2013-05-21 18:28                 ` Dmitry Antipov
2013-05-22  5:10               ` Ulrich Mueller
2013-05-22 14:51                 ` 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=877git6hhv.fsf@digitalsignallabs.com \
    --to=yates@digitalsignallabs.com \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /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).