gnu.emacs.help
[Top] [All Lists]

Re: opening large files (few hundred meg)

Subject: Re: opening large files few hundred meg
From: Sven Joachim
Date: Mon, 28 Jan 2008 19:05:41 +0100
Newsgroups: gnu.emacs.help

On 2008-01-28 18:35 +0100, Xah Lee wrote:

> If i want to process a huge file (my weekly log file is about 0.5GB),
> what can i do?

If it is so huge, you may want to rotate it daily rather than weekly.
See logrotate(8), for instance.

> i tried to open and it says maximum buffer size exceeded.
>
> â How can i increase the limit?

Use a 64-bit system.

> â is there a general solution to work with files (elisp) without
> actually loading the whole file?

Not really, since visiting a file reads all of it into an Emacs buffer.
If the file is too large, you can split(1) it into smaller chunks that
Emacs can process.

Sven

<Prev in Thread] Current Thread [Next in Thread>