swift-nio-http2 icon indicating copy to clipboard operation
swift-nio-http2 copied to clipboard

checked out swift-nio-http2 repo is 63 MiB, 59 MiB of that is because of uncompressed json test fixtures

Open weissi opened this issue 5 months ago • 2 comments

$ du -ms swift-nio-http2/Tests/hpack-test-case/
59	swift-nio-http2/Tests/hpack-test-case/

Even gzip compressed it only takes up 5.5 MiB, so we could save a bunch of bandwidth and disk space if we compressed those files and decompressed them only when running the H2 tests.

weissi avatar Jul 21 '25 12:07 weissi

Presumably at this stage that's only possible with a history rewrite though, right? The test-cases haven't really changed so we aren't storing multiple copies.

Lukasa avatar Jul 21 '25 12:07 Lukasa

Presumably at this stage that's only possible with a history rewrite though, right? The test-cases haven't really changed so we aren't storing multiple copies.

If SwiftPM registries end up becoming a thing, this would change. But yes, for bandwidth purposes there's not much we can do before that. Would still save disk space to not have each swift-nio-http2 checkout contain an extra 60 MiB.

weissi avatar Jul 21 '25 13:07 weissi