-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[pkg/stanza] Hash fingerprints #31317
[pkg/stanza] Hash fingerprints #31317
Conversation
661d39f
to
9cc2614
Compare
520fd63
to
869976b
Compare
869976b
to
9b23404
Compare
Depends on #31251 This is in preparation for adding additional fields to the fingerprint struct. The goal is to write the same data to storage while ensuring consistency between the fields of the struct. This problem does not present until there is a second field in the struct, but this PR prepares for that problem without adding the new field. See #31317 for additional detail.
9b23404
to
f9f7a3a
Compare
f9f7a3a
to
e282966
Compare
…ry#31346) Depends on open-telemetry#31251 This is in preparation for adding additional fields to the fingerprint struct. The goal is to write the same data to storage while ensuring consistency between the fields of the struct. This problem does not present until there is a second field in the struct, but this PR prepares for that problem without adding the new field. See open-telemetry#31317 for additional detail.
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Now that #31516 is merged, I will revisit whether this actually improves performance. |
Unfortunately, at least by this benchmark, the change does not improve performance. In fact it appears to degrade performance when working with many files.
It's certainly possible the additional changes would yield a better result but I have spent quite some time on this without any benefit so will close the PR and associated issue. |
Resolves #29617
Replaces #29691
Hashes fingerprints in order to make comparisons more efficient. The hash value is stored on the fingerprint struct but does not need to be saved to storage as it can be restored based on the bytes.