Skip to content

Conversation

@RReverser
Copy link
Collaborator

Writing to a temporary gzip file, measuring and then deleting is both inefficient, but also results in a slightly larger reported size because it then also writes extra metadata like the original filename.

That metadata is not something we care about measuring, as more often than not compression on the Web happens on the fly anyway.

@RReverser RReverser requested a review from sbc100 June 20, 2025 01:40
Writing to a temporary gzip file, measuring and then deleting is both inefficient, but also results in a slightly larger reported size because it then also writes extra metadata like the original filename.

That metadata is not something we care about measuring, as more often than not compression on the Web happens on the fly anyway.
@RReverser RReverser enabled auto-merge (squash) July 9, 2025 01:11
@RReverser RReverser merged commit 7708975 into emscripten-core:main Jul 9, 2025
30 checks passed
@RReverser RReverser deleted the gzip-wo-metadata branch July 9, 2025 12:57
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.

2 participants