From: Stefan Beller Date: Tue, 04 Dec 2018 00:30:46 GMT Subject: Re: [WIP RFC 3/5] upload-pack: refactor reading of pack-objects out Message-ID: In-Reply-To: On Mon, Dec 3, 2018 at 3:37 PM Jonathan Tan wrote: > > Subsequent patches will change how the output of pack-objects is > processed, so extract that processing into its own function. > > Currently, at most 1 character can be buffered (in the "buffered" local > variable). One of those patches will require a larger buffer, so replace > that "buffered" local variable with a buffer array. This buffering sounds oddly similar to the pkt reader which can buffer at most one pkt, the difference being that we'd buffer bytes instead of pkts.