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

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

Re: opening large files (few hundred meg)


From: Sven Joachim
Subject: Re: opening large files (few hundred meg)
Date: Mon, 28 Jan 2008 19:05:41 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

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


reply via email to

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