Re: [PATCH v2 3/3] sha1_file: remove recursion in unpack_entry

2013-03-25 Thread Junio C Hamano
Thomas Rast writes: > Similar to the recursion in packed_object_info(), this leads to > problems on stack-space-constrained systems in the presence of long > delta chains. > > We proceed in three phases: > > 1. Dig through the delta chain, saving each delta object's offsets and >size on an ad

[PATCH v2 3/3] sha1_file: remove recursion in unpack_entry

2013-03-25 Thread Thomas Rast
Similar to the recursion in packed_object_info(), this leads to problems on stack-space-constrained systems in the presence of long delta chains. We proceed in three phases: 1. Dig through the delta chain, saving each delta object's offsets and size on an ad-hoc stack. 2. Unpack the base obje