#1518 assigned defect

zero-byte MDMF reads should not fetch any segments

Reported by: warner Owned by: warner
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.

Change History (2)

comment:1 Changed at 2015-08-18T16:41:33Z by warner

  • Description modified (diff)

I *think* I might have fixed this in [89e9076c4], but it needs closer examination to be sure.

comment:2 Changed at 2015-08-18T17:02:29Z by warner

  • Owner set to warner
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.