Re: [PATCH] Really *do* nothing in while loop
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 8, 2005, 21:35 UTC
- Message-ID
- <7vu0ld4d0k.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.21.0505081713070.30848-100000@iabervon.org>
>>>>> "DB" == Daniel Barkalow <barkalow@iabervon.org> 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?