Opened at 2011-08-31T05:38:57Z
Last modified at 2015-08-18T17:02:29Z
#1518 assigned defect
zero-byte MDMF reads should not fetch any segments — at Version 1
Reported by: | warner | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | eventually |
Component: | code-mutable | Version: | 1.9.0a1 |
Keywords: | mutable mdmf performance easy | Cc: | |
Launchpad Bug: |
Description (last modified by warner)
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 32e30c9023479e3c) 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.
Note: See
TracTickets for help on using
tickets.
I *think* I might have fixed this in [89e9076c4], but it needs closer examination to be sure.