Skip to content

Do not read entire file in memory for hash calculation #122

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pbusko
Copy link

@pbusko pbusko commented Jun 11, 2025

Summary

Currently the uploader reads entire file in memory just for MD5 and SHA256 sums calculation. If a buildpack cache archive or droplets are large, it might affect the entire cell.

With the new approach the file is read with the default chunk sizes of 32K, not storing the actual content.

Backward Compatibility

Breaking Change? No

@pbusko pbusko requested a review from PlamenDoychev June 16, 2025 06:20
@PlamenDoychev
Copy link
Contributor

Hi @pbusko ,

Can you also create one issue here: https://github.com/cloudfoundry/diego-release/issues and provide details and motivation for the proposal and link this PR to it. Just look at the various issues we have open and follow the "template".

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Application Runtime Platform Working Group Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending Merge | Prioritized
Development

Successfully merging this pull request may close these issues.

2 participants