[tahoe-dev] [tahoe-lafs] #329: dirnodes could cache encrypted/serialized entries for speed
tahoe-lafs
trac at allmydata.org
Fri Jul 3 20:58:46 PDT 2009
#329: dirnodes could cache encrypted/serialized entries for speed
---------------------------+------------------------------------------------
Reporter: warner | Owner: kevan
Type: enhancement | Status: new
Priority: minor | Milestone: undecided
Component: code-dirnodes | Version: 0.8.0
Keywords: dirnode | Launchpad_bug:
---------------------------+------------------------------------------------
Comment(by kevan):
Okay. Given that, do you think that the other tests in
{{{test_unpack_and_pack_behavior()}}} are going to be enough?
I've finished doing a few things.
* I've changed the tests for {{{_pack_contents}}} and
{{{_unpack_contents}}} in {{{test_dirnode.py}}} to not check the output of
{{{_pack_contents}}} for equality, since that will always fail at the
moment. I've also moved a misplaced comment.
* I've added tests for {{{CachingDict}}}, the data structure described
by warner above (cool idea, by the way).
* I've added an implementation of {{{CachingDict}}} to {{{dirnode.py}}}.
It basically does what warner suggested that it do.
* I've changed {{{_pack_contents}}}, {{{_unpack_contents}}}, and
{{{_create}}} to use {{{CachingDict}}}s instead of {{{dict}}}s.
With these done (tests.txt, dict.txt, optimizations.txt applied),
{{{python setup.py test}}} passes on my machine.
--
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/329#comment:15>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid
More information about the tahoe-dev
mailing list