-
Notifications
You must be signed in to change notification settings - Fork 78
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
Compress the serialized PCD collection during sync if above a threshold size #2197
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like a pretty big package for our bundle (>1MB) -- any way we could dynamically load via bundle splitting or perhaps use a smaller package?
https://npm-compare.com/fflate,pako
https://packagephobia.com/result?p=pako%402.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already a dependency for
![image](https://private-user-images.githubusercontent.com/20022/407910734-e379b10e-d84a-42d2-8f29-ba74195bc3b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTk2ODksIm5iZiI6MTczOTM1OTM4OSwicGF0aCI6Ii8yMDAyMi80MDc5MTA3MzQtZTM3OWIxMGUtZDg0YS00MmQyLThmMjktYmE3NDE5NWJjM2I3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExMjMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0M2U1ZDI5MDI0MGU4OTAyZDhkNDA5OTMzNjIwNTRlYWE2ZTc2YjkxZmJmYzg3NGFkZjRjZWJjYjRhMzNmOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.abz4csIp9o0L2GgLAcOgkAP-1Sa6IfJ8ZtNUaNK6Zto)
passport-ui
, where it's used to compress the contents of QR codes (at least in cases where those QR codes contain large data, e.g. proofs). It takes up 46kb of space in the bundle:Since it's already included by passport-ui, the additional cost of using it here is zero.
I think packagephobia is just counting the total size of the package's
dist
directory, but only one file from that directory is actually used - probablypako.min.js
orpako.es5.min.js
, both of which are around 46kb in size.