help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Poor Performance w/ Long Files


From: Tim Visher
Subject: Re: Poor Performance w/ Long Files
Date: Thu, 20 Aug 2009 12:24:10 -0400

On Thu, Aug 20, 2009 at 9:50 AM, Pascal J.
Bourguignon<pjb@informatimago.com> wrote:
> Tim Visher <tim.visher@gmail.com> writes:
>
>> On Wed, Aug 19, 2009 at 8:09 PM, Pascal J.
>> Bourguignon<pjb@informatimago.com> wrote:
>>> Tim Visher <tim.visher@gmail.com> writes:
>>>
>>>> Hello Everyone,
>>>>
>>>> I work with many large files (+10,000,000 ASCII characters) at work
>>>> and I've noticed that Emacs does extremely poorly with those files.  I
>>>> have taken to opening them up in something like Notepad++ to look at
>>>> them and editing the programs that operate on them in Emacs.  I'd love
>>>> to be able to just stick with Emacs.
>>>>
>>>> Is there something that I just haven't set yet or does Emacs have
>>>> trouble with large files?
>>>
>>> Perhaps you could disable some emacs options that might take time,
>>> like font-locking.  Basically, if you edit this files in fundamental-mode,
>>> with truncate-line turned off with C-u 1 M-x toggle-truncate-lines RET and
>>> with font-locking turned off with C-u -1 M-x font-lock-mode RET,
>>> it should go faster.
>>
>> This fixed things.  I hadn't even thought of it but the file I was
>> opening tried to open in tcl and pabbrev modes and that's what seems
>> to have caused the slowdown.  Putting thing back into Fundamental with
>> pabbrev off quickened things right up.
>>
>> Is there a way to manually force a file to open in a particular mode
>> without setting an auto-mode in .emacs?
>
> M-x find-file-literally RET
>
> It's written right down at the bottom of the help page for find-file ;-)
>
>    To visit a file without any kind of conversion and without
>    automatically choosing a major mode, use M-x find-file-literally.

Thanks!  I should've checked the manual myself first. :)

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




reply via email to

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