Re: [PATCH 4/4] pack-objects: rewrite add_descendants_to_write_order() iteratively
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 27, 2011, 22:13 UTC
- Message-ID
- <7vty6uxeua.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1318915284-6361-4-git-send-email-dpmcgee@gmail.com>
Dan McGee <dpmcgee@gmail.com> writes:
> This removes the need to call this function recursively, shinking the > code size slightly and netting a small performance increase. > > Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Tricky.
As long as this is done after compute_write_order() populates delta_sibling vs delta link in a consistent way, the new logic should produce exactly the same result as the original code.
Thanks.