[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading portions of large files
From: |
Stefan Monnier <address@hidden> |
Subject: |
Re: Reading portions of large files |
Date: |
12 Jan 2003 15:38:39 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> BTW, would it be terribly complicated to extend the range of Lisp
> integers to 31bit?
Currently a cons cell takes 2 words. Each word has 3 tag bits and
1 mark bit. When marking a cons cell, the GC sets the mark bit of the
first word of the cell. The mark bit of the second word is unused
(i.e. wasted).
Since at least 1 bit of tag is needed, that means that to get 31bit
integers we'd need to move the mark bit somewhere else. XEmacs decided to
use 3-word cons cells (and I know they're still regularly wondering
whether it was a good idea). Another approach is to use a separate mark-bit
array.
Lots of trade offs, a fair bit of coding, even more testing, ...
Anybody interested is welcome to tried it out. My opinion is that maybe it
would be nice, but since the only application I'm aware of is "editing files
between 128MB and 1GB on 32bit systems", I don't think it's worth
the trouble.
Stefan
- Reading portions of large files, Gerald . Jean, 2003/01/09
- Re: Reading portions of large files, David Kastrup, 2003/01/09
- Re: Reading portions of large files, Eli Zaretskii, 2003/01/10
- Message not available
- Re: Reading portions of large files,
Stefan Monnier <address@hidden> <=
- Re: Reading portions of large files, Miles Bader, 2003/01/13
- Re: Reading portions of large files, Miles Bader, 2003/01/13
- Re: Reading portions of large files, David Kastrup, 2003/01/13
- Re: Reading portions of large files, Miles Bader, 2003/01/13
- Re: Reading portions of large files, Lee Sau Dan, 2003/01/20
- Re: Reading portions of large files, Mac, 2003/01/24
- Re: Reading portions of large files, Stefan Monnier <address@hidden>, 2003/01/27
Re: Reading portions of large files, Eric Pement, 2003/01/10
Re: Reading portions of large files, Brendan Halpin, 2003/01/10