From: Christian Couder <chriscool@tuxfamily.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: [PATCH 0/4] start refactoring binary search function
Date: Sat, 4 Apr 2009 22:59:20 +0200 [thread overview]
Message-ID: <20090404225920.6a10fe78.chriscool@tuxfamily.org> (raw)
There are many binary search functions in the code base and I have been
asked to refactor them in these message:
http://thread.gmane.org/gmane.comp.version-control.git/105363/focus=105436
http://thread.gmane.org/gmane.comp.version-control.git/114735/focus=115391
so here is a start
The following patch applies on top of pu where they can be squashed into other
patches:
sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1
patch-ids: use the new generic "sha1_pos" function to lookup sha1
bisect: use the new generic "sha1_pos" function to lookup sha1
replace_object: use the new generic "sha1_pos" function to lookup
sha1
bisect.c | 23 +++++-------
patch-ids.c | 93 +++-----------------------------------------------
replace_object.c | 24 +++++--------
sha1-lookup.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sha1-lookup.h | 7 ++++
5 files changed, 131 insertions(+), 117 deletions(-)
next reply other threads:[~2009-04-04 21:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-04 20:59 Christian Couder [this message]
2009-04-05 9:45 ` [PATCH 0/4] start refactoring binary search function Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090404225920.6a10fe78.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).