From: Junio C Hamano Date: Sun, 08 May 2005 21:35:23 GMT Subject: Re: [PATCH] Really *do* nothing in while loop Message-ID: <7vu0ld4d0k.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "DB" == Daniel Barkalow writes: DB> On Sun, 8 May 2005, Junio C Hamano wrote: >> MT> As I already said, deflate() in this case does only ONE iteration. MT> stream.avail_in is NOT changed in the loop (except of the deflate() MT> itself, where it will be set to 0 - provided out buffer have enouth MT> room).... >> >> Just a stupid question, but what happens when we do not have >> enough room in the buffer? DB> We must have enough room; we sized the buffer with deflateBound to fit the DB> worst case. Thanks for the explanation. Then do we still need to express it as a while loop?