Skip to content

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

Draft
jthiltges wants to merge 1 commit intoopensciencegrid:masterfrom
jthiltges:pr/limitcksums
Draft

When checksums are missing, limit the calculations to checksums enabled in the config#56
jthiltges wants to merge 1 commit intoopensciencegrid:masterfrom
jthiltges:pr/limitcksums

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