Skip to content

Allow bypassing check for '.keep' file#4965

Merged
ethomson merged 1 commit into
libgit2:masterfrom
mechanicker:eliminate-check-for-keep-file
Feb 14, 2019
Merged

Allow bypassing check for '.keep' file#4965
ethomson merged 1 commit into
libgit2:masterfrom
mechanicker:eliminate-check-for-keep-file

Conversation

@mechanicker
Copy link
Copy Markdown
Contributor

Retrieving commits involving looking for pack files. Any file operation for git repositories accessed over NAS has a huge performance impact.
For repositories which do not require retaining pack files, we can avoid a call to check for existence of '.keep' file and reduce the overall latency.

Comment thread src/pack.c Outdated
Comment thread src/pack.c Outdated
@ethomson
Copy link
Copy Markdown
Member

Welcome to the libgit2 project, @Hackworks! I think that this seems like a reasonable change, but I'd like to iterate on it just a bit. Thanks for opening the PR!

@mechanicker mechanicker force-pushed the eliminate-check-for-keep-file branch 2 times, most recently from c73f1c4 to ae755b2 Compare January 29, 2019 02:31
@mechanicker
Copy link
Copy Markdown
Contributor Author

Welcome to the libgit2 project, @Hackworks! I think that this seems like a reasonable change, but I'd like to iterate on it just a bit. Thanks for opening the PR!

Thank you for encouraging and welcoming. I would love to contribute more. I come from a storage background and have spent time optimizing NFS stack for build and database workloads.

@mechanicker mechanicker force-pushed the eliminate-check-for-keep-file branch 2 times, most recently from fc8f8c7 to 7ecb192 Compare January 29, 2019 04:25
Comment thread tests/pack/packbuilder.c Outdated
Copy link
Copy Markdown
Contributor

@tiennou tiennou left a comment

Choose a reason for hiding this comment

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

Okay, I'm bikeshedding names now 😉.

I'm unsold on whether we should keep the dead code around though, it feels weird to add an option for a check that is basically unused at the moment (and won't be until someone starts looking at git-gc or #2370).

Comment thread include/git2/common.h Outdated
Comment thread src/pack.c Outdated
Comment thread tests/pack/packbuilder.c Outdated
@mechanicker mechanicker force-pushed the eliminate-check-for-keep-file branch 2 times, most recently from ed07cb7 to d7b4bac Compare January 31, 2019 14:02
@mechanicker mechanicker force-pushed the eliminate-check-for-keep-file branch from d7b4bac to 004a339 Compare February 2, 2019 15:56
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Feb 7, 2019

I've no complaints with this. I'll be happy to merge it as soon as v0.28 is out the door. Right now I want to keep the master branch frozen to make sure that there are no complaints about v0.28.0-rc1 that need to be addressed.

I expect that we should thaw out the master branch directly, it's been nearly a week with no reports of issues.

@ethomson
Copy link
Copy Markdown
Member

Thanks, @Hackworks. Now that 0.28 is out, this is ready to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog Needs an entry in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants