Repository navigation
lib/protocol: Optimize FileKey - #7440
Merged
Merged
Conversation
Use lib/sha256 to get the fast Minio hash, allocate the salt at init time. Benchmark results on Linux/amd64 with STHASHING=minio: name old time/op new time/op delta FileKey-8 6.27µs ± 3% 4.58µs ± 3% -26.91% (p=0.000 n=20+19) name old alloc/op new alloc/op delta FileKey-8 1.47kB ± 0% 1.17kB ± 0% -20.58% (p=0.000 n=20+20) name old allocs/op new allocs/op delta FileKey-8 19.0 ± 0% 16.0 ± 0% -15.79% (p=0.000 n=20+20)
calmh
approved these changes
Mar 7, 2021
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Mar 11, 2021
* main: build: Update notify (syncthing#7444) next-gen-gui: Add button to restore default theme (syncthing#7433) lib/protocol: Optimize FileKey (syncthing#7440) cmd/syncthing, etc: Consistent failure restart backoff (syncthing#7439) lib: Return error from db.FileSet.Snapshot (fixes syncthing#7419, ref syncthing#5907) (syncthing#7424)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use lib/sha256 to get the fast Minio hash, allocate the salt at init time. Benchmark results on Linux/amd64 with STHASHING=minio: