Skip to content

fixup! name-hash: precompute hash values during preload-index #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jeffhostetler
Copy link

Clear the precompute flag in create_alias_ce().
It might be possible to use the precompute_ fields from the
alias in the new one, but its not worth the bother.

Signed-off-by: Jeff Hostetler [email protected]

Clear the precompute flag in create_alias_ce().
It might be possible to use the precompute_ fields from the
alias in the new one, but its not worth the bother.

Signed-off-by: Jeff Hostetler <[email protected]>
@jeffhostetler
Copy link
Author

@dscho Good catch on the fixup for the rename case. I think this one should go with that.

@@ -616,6 +616,7 @@ static struct cache_entry *create_alias_ce(struct index_state *istate,
new = xcalloc(1, cache_entry_size(len));
memcpy(new->name, alias->name, len);
copy_cache_entry(new, ce);
new->precompute_hash_state = 0;

This comment was marked as off-topic.

This comment was marked as off-topic.

@dscho dscho merged commit 26d45d6 into git-for-windows:master Nov 23, 2016
@jeffhostetler jeffhostetler deleted the jeffhostetler/fixup_memihash_perf branch December 1, 2016 19:55
@dscho dscho added this to the v2.11.0 milestone Dec 22, 2016
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