Skip to content
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

git transmat should cache checkout tree of submodules #7

Open
warpfork opened this issue Dec 22, 2018 · 0 comments
Open

git transmat should cache checkout tree of submodules #7

warpfork opened this issue Dec 22, 2018 · 0 comments

Comments

@warpfork
Copy link
Member

The git transmat currently caches the git objects (in their internal content-addressable layouts), and caches full checkouts of the final fileset (including all submodules). So far so good.

It should also cache the fileset of the submodule checkouts. The time it takes to do a git checkout from the object cache is quite large compared to how long it takes to do a simple copy of the files if they're already on disk.

This would increase the amount of disk space used in caching, but increase speed significantly in the case of repos with many submodules where the submodules don't typically change between commits of the main parent repo (which is basically normal usage).

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

No branches or pull requests

1 participant