[tahoe-dev] Random access to files
zooko
zooko at zooko.com
Wed Jan 28 08:20:30 PST 2009
On Jan 28, 2009, at 9:03 AM, zooko wrote:
>> Is it really as simple as restricting the range of this for loop?
>
> Yes. [...]
> Heh heh heh! Now I see that Brian wrote a reply to your message
> saying that it is rather more complicated than this! [...]
> I guess it is up to you to dive in and figure out just how hard it
> really is. ;-)
P.S. And of course the way that we tell whether it worked is unit
tests. Add a test function to this file:
http://allmydata.org/trac/tahoe/browser/src/allmydata/test/
test_immutable.py?rev=3416
which tries to download just a subset of the data. To make sure that
the initialization issue is right, download a subset, wait til that
download has succeeded, then download a different subset (or the same
subset again), and also (in a separate test function) download
several subsets at once (i.e, all in the same reactor tick) so that
the downloader code has to hold those requests until the
initialization is done and then satisfy all the requests.
Regards,
Zooko
---
Tahoe, the Least-Authority Filesystem -- http://allmydata.org
store your data: $10/month -- http://allmydata.com/?tracking=zsig
More information about the tahoe-dev
mailing list