#1518 assigned defect

zero-byte MDMF reads should not fetch any segments — at Initial Version

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

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 (0)

Note: See TracTickets for help on using tickets.