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

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

Re: Reading huge files


From: Eli Zaretskii
Subject: Re: Reading huge files
Date: Wed, 10 Jan 2007 06:11:24 +0200

> From: Mathias Dahl <mathias.dahl@gmail.com>
> Date: Wed, 10 Jan 2007 00:29:15 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Does this really work?  I think it won't: the underlying problem is
> > that for large files, END overflows the limits of the ELisp integer
> > type, and your suggestion doesn't resolve this fundamental problem.
> > So insert-file-contents will still barf with large files.
> >
> > Or am I missing something?
> 
> I have only tested the code below with a 700 MB large movie file, and
> that is probably within the bounds you talk about.  But even if it
> would fail (when does it fail?), being able to browse files hundreds
> of MB in size seems quite nice. Hence my new hack below.

If this is a 32-bit machine, then the Lisp integer overflows at
256MB.  If that's a 64-bit machine, then you don't need any tricks to
edit 700MB files.




reply via email to

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