Skip to content

sha1_lookup: drop sha1_entry_pos function - #4327

Merged
ethomson merged 1 commit into
masterfrom
peff/drop-sha1-entry-pos
Aug 14, 2017
Merged

sha1_lookup: drop sha1_entry_pos function#4327
ethomson merged 1 commit into
masterfrom
peff/drop-sha1-entry-pos

Conversation

@peff

@peff peff commented Aug 9, 2017

Copy link
Copy Markdown
Member

This was pulled over from git.git, and is an experiment in making binary-searching lists of sha1s faster. It was never compiled by default (nor was it used upstream by default without a special environment variable).

Unfortunately, it is actually slower in practice, and upstream is planning to drop it in git/git@f1068ef (which has some timing results). It's worth doing the same here for simplicity.

(I didn't actually re-run libgit2 benchmarks, but since the code has been pulled over without modification, I don't see how it would perform any better than the git.git version).

This was pulled over from git.git, and is an experiment in
making binary-searching lists of sha1s faster. It was never
compiled by default (nor was it used upstream by default
without a special environment variable).

Unfortunately, it is actually slower in practice, and
upstream is planning to drop it in
git/git@f1068ef (which has
some timing results). It's worth doing the same here for
simplicity.

@ethomson ethomson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ethomson
ethomson merged commit f908b18 into master Aug 14, 2017
@peff
peff deleted the peff/drop-sha1-entry-pos branch August 14, 2017 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants