all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Tom <adatgyujto@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Handling large files with Emacs
Date: Wed, 24 Oct 2012 14:52:07 +0530	[thread overview]
Message-ID: <876260cji8.fsf@gmail.com> (raw)
In-Reply-To: <loom.20121024T094652-718@post.gmane.org> (Tom's message of "Wed,  24 Oct 2012 07:52:58 +0000 (UTC)")

Tom <adatgyujto@gmail.com> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> 
>> That's ridiculously small.  I routinely edit files approaching 500MB
>> without any problems, and that's on a 32-bit machine, whereas yours is
>> a 64-bit one.  So something is seriously wrong with your system, or
>> maybe with the Emacs binary (but I can hardly believe it).
>> 
>> 
>
> I think it's because syntax highlight or something. When I try opening
> SQL dumps (say, 200MB) then Emacs grinds to a halt for a minute or
> so, and moving in the file is very slow even after that.

Have you experimented with `font-lock-maximum-size' together with
`font-lock-support-mode'?

,----[ C-h v font-lock-maximum-size RET ]
| font-lock-maximum-size is a variable defined in `font-lock.el'.
| Its value is 256000
| 
|   This variable is obsolete since 24.1.
| 
| Documentation:
| Maximum buffer size for unsupported buffer fontification.
| When `font-lock-support-mode' is nil, only buffers smaller than
| this are fontified.  This variable has no effect if a Font Lock
| support mode (usually `jit-lock-mode') is enabled.
| 
| If nil, means size is irrelevant.
| If a list, each element should be a cons pair of the form (MAJOR-MODE . SIZE),
| where MAJOR-MODE is a symbol or t (meaning the default).  For example:
|  ((c-mode . 256000) (c++-mode . 256000) (rmail-mode . 1048576))
| means that the maximum size is 250K for buffers in C or C++ modes, one megabyte
| for buffers in Rmail mode, and size is irrelevant otherwise.
| 
| You can customize this variable.
| 
| [back]
`----

>
> If I don't use an .sql extension, so that the file is not opened
> in SQL mode then it's much better. So opening big files in fundamental
> mode works well, but if it has its own mode with syntax highlighting
> then it's pretty much unusable.
>
> I think Fab has a similar problem, because he opens the big file
> in Bibtex mode which also does it's own stuff, parsing the buffer
> with regexps for syntax highlighting, or something like this.
>
>
>

-- 



  reply	other threads:[~2012-10-24  9:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-23 19:33 Handling large files with Emacs Fab
2012-10-23 19:52 ` Eli Zaretskii
     [not found] ` <mailman.11564.1351021951.855.help-gnu-emacs@gnu.org>
2012-10-23 20:09   ` Fab
2012-10-23 20:40     ` Eli Zaretskii
2012-10-24  7:52       ` Tom
2012-10-24  9:22         ` Jambunathan K [this message]
2012-10-24  9:34           ` Tom
2012-10-24 18:16             ` Eli Zaretskii
2012-10-24  9:40           ` Tom
2012-10-24 13:51             ` Jambunathan K
2012-10-24 18:16             ` Eli Zaretskii
2012-10-24 19:09               ` Tom
2012-10-24 20:12                 ` Ludwig, Mark
     [not found]               ` <mailman.11635.1351105779.855.help-gnu-emacs@gnu.org>
2012-10-24 19:47                 ` Stefan Monnier
     [not found]     ` <mailman.11568.1351024821.855.help-gnu-emacs@gnu.org>
2012-10-23 20:49       ` Fab
2012-10-24 15:29 ` Stefan Monnier
2012-10-24 17:19   ` Fab
2012-10-24 19:32     ` Stefan Monnier
2012-10-24 20:19     ` Drew Adams

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

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

  git send-email \
    --in-reply-to=876260cji8.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=adatgyujto@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.