--- Hanson Char <[EMAIL PROTECTED]> wrote:

> >It would simply be a list of positions.  No
> > size data is needed, since all the blocks are the
> same
> > size.
> 
> If an item fits in a block, but has a size smaller
> than the block
> size, you still need to record the size data.  What
> am I missing here
> ?

Right now the recycle bin holds the length of the item
on disk.  Originally the length of the item was only
stored on disk, in the first 4 bytes of the record. 
Now (and for some time I think) the length is stored
along with the key and position in memory so it can be
used in the recycle bin.  This makes the length on
disk redundant.  The alternative would be to look up
the length when an item is removed and then store this
in the recylce bin.  This might be preferable, since
the overall memory usage would be 4 bytes lower per
entry. . . .

In the block model, the recycle bin no longer needs
the size, since all blocks are the same size.  You
still need to store the actual length of the item on
disk, but it would not be redundant.

Aaron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to