[tahoe-lafs-trac-stream] [tahoe-lafs] #1518: zero-byte MDMF reads should not fetch any segments
tahoe-lafs
trac at tahoe-lafs.org
Tue Aug 30 22:38:57 PDT 2011
#1518: zero-byte MDMF reads should not fetch any segments
-------------------------------------------+----------------------------
Reporter: warner | Owner:
Type: defect | Status: new
Priority: minor | Milestone: eventually
Component: code-mutable | Version: 1.9.0a1
Keywords: mutable mdmf performance easy | Launchpad Bug:
-------------------------------------------+----------------------------
A minor leftover from #1512 is a low-yield performance improvement: if
somebody does a zero-byte read, the code should return without actually
fetching any segments. The current code (as of [5235]) fetches the first
segment, then throws away all of its data.
This ought to be a two-liner: it's probably enough to return
{{{defer.succeed(something)}}} without ever even talking to the
{{{IConsumer}}}.
--
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1518>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list