Re: [PATCH v3 1/3] Introduce sorted-array binary-search function.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 16, 2010, 17:27 UTC
- Message-ID
- <7vy68ti3gr.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1289255942-19705-2-git-send-email-ydirson@altern.org>
Yann Dirson <ydirson@altern.org> writes:
> We use a cpp-based template mechanism to declare the array and its > management data, as well as a search function, derived from locate_rename_dst() > from diffcore-rename.c. Thanks to Jonathan Nieder for this design idea.
Hmmm.... Yet another binary search...
Can we generalize the existing ones first before adding any of this in (hint: look for "git grep -w -e hi --and -e lo")?