[tahoe-dev] blocks instead of files?

David-Sarah Hopwood david-sarah at jacaranda.org
Wed Mar 10 15:27:46 PST 2010


Jody Harris wrote:
> Has the Tahoe Dev ever discussed the possibility of encrypting and storing
> blocks instead of files?
> 
> I don't know:
> 1) if this has already been discussed, or
> 2) if it would actually solve the problem it seems to me it would solve.
> 
> If the encrypt/store algorithms encrypt in (for example) 128 KB blocks,
> then
>  - you would never hit the large memory overhead problems seen with 100 MB
> and larger files.
>  - processing and storage would just take the file one chunk at a time
>  - retrieval and decryption (seems) that it would stream nicely since
> allocation of the next block(s) could take place while the current block is
> streaming out.

This should all already be the case for immutable files.

That it isn't true for mutable files is, as far as I know, just a temporary
limitation of the current mutable download/upload code (which does work in
terms of segments, but hasn't been optimized to reduce its memory usage by
doing so).

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 292 bytes
Desc: OpenPGP digital signature
Url : http://allmydata.org/pipermail/tahoe-dev/attachments/20100310/67434679/attachment.pgp 


More information about the tahoe-dev mailing list