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: Andreas Röhler
Subject: Re: opening large files (few hundred meg)
Date: Mon, 28 Jan 2008 21:36:50 +0100
User-agent: KMail/1.9.5

Am Montag, 28. Januar 2008 20:31 schrieb Eli Zaretskii:
> > From: Sven Joachim <svenjoac@gmx.de>
> > Date: Mon, 28 Jan 2008 19:05:41 +0100
> >
> > > • How can i increase the limit?
> >
> > Use a 64-bit system.
>
> Yes, that's the only practical way, sans splitting the file outside of
> Emacs.
>
> > > • 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.
>
> The problem is not with the buffer size per se, it's with the fact
> that Emacs needs to be able to address each byte of the file's text
> with an Emacs integer data type, which is 29 bit wide on 32-bit
> machines.
>

What about a large-text-mode: sed reads chunks of text
in, one by one, letting Emacs forget the rest. Than
only the line-no matters, sent to sed.

Andreas Röhler




reply via email to

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