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

Keep file checksum in memory #39

Merged
merged 1 commit into from
Apr 20, 2018
Merged

Keep file checksum in memory #39

merged 1 commit into from
Apr 20, 2018

Conversation

bpineau
Copy link
Owner

@bpineau bpineau commented Apr 20, 2018

To avoid re-writing the same file at each resync.
This shouldn't make a huge performance difference, except on
very slow storage devices, but keeping the mtime/ctime
timestamps unchanged may be helpful.

Note that we don't compare file checksums to files collected
from an existing repository during the first clone & resync
(we'll dump every cluster object once in any case).

To avoid re-writing the same file at each resync.
This shouldn't make a huge performance difference, except on
very slow storage devices, but keeping the mtime/ctime
timestamps unchanged may be helpful.

Note that we don't compare file checksums to files collected
from an existing repository during the first clone & resync
(we'll dump every cluster object once in any case).
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 91.181% when pulling baba7ac on checksum_files into 8276571 on master.

@bpineau bpineau merged commit 6fa5415 into master Apr 20, 2018
@bpineau bpineau deleted the checksum_files branch April 20, 2018 16:36
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