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

Re: Emacs has hard time with big text files



On 2008-09-09 13:37 +0200, Martin wrote:

> When opening file of 150Mb size emacs show in minibuffer:
> Maximum buffer size exceeded
> and refuse to open the file at all!
> I added another 1Gb of swap but it did not help.
> How does emacs decide the maximum size of file it accept?

On 32-bit machines the maximum buffer size is 128 MB in Emacs 21 and
earlier, 256 MB in Emacs 22 and later.  Quoting the manual:

,----
|    A buffer's size cannot be larger than some maximum, which is defined
| by the largest buffer position representable by the "Emacs integer"
| data type.  This is because Emacs tracks buffer positions using that
| data type.  For 32-bit machines, the largest buffer size is 256
| megabytes.
`----

Sven


Reply to: