This repository was archived by the owner on Jun 3, 2025. It is now read-only.
feat: optimize build#694
Merged
tejal29 merged 4 commits intoGoogleContainerTools:masterfrom Oct 4, 2019
Merged
Conversation
c798a46 to
4647b3e
Compare
Contributor
Author
|
Bench Result of HasFilepathPrefix. |
4647b3e to
ace76f4
Compare
Contributor
Author
|
ping |
tejal29
suggested changes
Sep 17, 2019
| key := make([]byte, highwayhash.Size) | ||
| hasher := func(p string) (string, error) { | ||
| h := md5.New() | ||
| h, _ := highwayhash.New(key) |
Contributor
There was a problem hiding this comment.
Check error. Can you explain or add link to benefits os highwayhash instead of md5.
Any disadvantages? Is this project being actively worked on?
Contributor
|
@orisano This looks awesome! Thank you for all tour work! |
Contributor
|
Looks like this failed |
a93b5a3 to
38fa360
Compare
tejal29
reviewed
Sep 18, 2019
| if _, err := io.Copy(h, f); err != nil { | ||
| buf := pool.Get().(*[]byte) | ||
| defer pool.Put(buf) | ||
| if _, err := io.CopyBuffer(h, f, *buf); err != nil { |
tejal29
approved these changes
Oct 4, 2019
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.
Result in my project:
runtime.main: 87.51s -> 55.40s
total: 129.54s -> 88.29s
before:
after: