Skip to content

Optimize checksum verification #132

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

Merged
merged 2 commits into from
May 11, 2023
Merged

Optimize checksum verification #132

merged 2 commits into from
May 11, 2023

Conversation

ammario
Copy link
Contributor

@ammario ammario commented May 9, 2023

Do not store the entire release in memory, and instead stream the download through the checksum and file simultaneously. This change will significantly help our test performance over at coder/coder.

Do not store the entire release in memory, and instead
stream the download through the checksum and file simultaneously.
@hashicorp-cla
Copy link

hashicorp-cla commented May 9, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ammario
I took some time to verify the performance difference through a benchmark and I can confirm reduction in memory usage worth ~80% - which is indeed amazing!

Aside from the minor in-line note this LGTM.

Co-authored-by: Radek Simko <radek.simko@gmail.com>
@ammario ammario requested a review from radeksimko May 10, 2023 17:40
@radeksimko radeksimko merged commit 858962c into hashicorp:main May 11, 2023
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.

3 participants