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

Investigate using git fast-import for creating the work git repositories #304

Open
waddlesplash opened this issue Nov 18, 2024 · 2 comments

Comments

@waddlesplash
Copy link
Member

Right now, we extract archives and then just "git add" the results. If we use "git fast-import", though, we could write the uncompressed archive data stream to a pipe and let Git repack it into a repository (git fast-import streams are uncompressed raw data containing all file attributes and whatever else). I did some basic testing, and "git fast-import" is faster even on a ramdisk than "git add && git commit": the former took around 6 seconds while the latter took almost 20. When the files aren't on a ramdisk or are too large to all fit in the disk cache, this would probably be an even bigger improvement.

@waddlesplash
Copy link
Member Author

(I was testing with Haiku's own git repository in these quick benchmarks.)

@waddlesplash
Copy link
Member Author

Hmm, I guess part of the problem here is that it wouldn't preserve file timestamps...

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

No branches or pull requests

1 participant