Skip to content
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

gitrest: Compress latest summary with Pako deflate #20728

Closed

Conversation

znewton
Copy link
Contributor

@znewton znewton commented Apr 18, 2024

Description

Isomorphic-Git automatically compresses everything written to storage using pako.deflate. However, when we added the "latestFullSummary" blob optimization, we did not compress it. From a local test, for simple summaries compression would reduce size by 80%.

Old summaries will not be "inflatable", so the error from attempting to inflate them is handled. This is ideal, IMO, compared to implementing our own header check in place of relying on Pako's.

This PR should be used in conjunction with #19285 because we have so-far been dependent on the "latestFullSummary" blob to check if the decompressed summary size is too large. Instead, we will have to start depending on blocking too large writes.

@github-actions github-actions bot added area: server Server related issues (routerlicious) base: main PRs targeted against main branch labels Apr 18, 2024
@znewton znewton marked this pull request as draft April 18, 2024 18:51
@znewton znewton force-pushed the gitrest/latest-summary-compression branch from dae797a to 898d65f Compare June 24, 2024 22:48
Copy link
Contributor

This PR has been automatically marked as stale because it has had no activity for 60 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: server Server related issues (routerlicious) base: main PRs targeted against main branch status: stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant