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

When checksums are missing, limit the calculations to checksums enabled in the config #56

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jthiltges
Copy link
Contributor

When a file is missing checksum xattrs, the plugin calculates all known checksums (not just the ones enabled), which adds CPU overhead.

This problem is made worse if the file is not writable to the current client, so the checksums xattrs cannot be written. And later accesses repeat the checksum calculation.

One drawback of this change is that it won't overwrite other checksum attributes that might be present. Perhaps that can be considered out of scope.

Opening as a draft for comment.

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.

1 participant