Skip to content

Conversation

@rzikm
Copy link
Member

@rzikm rzikm commented Jan 23, 2026

This is an experiment that replaces DEFLATE with Zstandard in single-file published applications for compression of bundled managed assemblies.

@github-actions github-actions bot added the area-HostModel Microsoft.NET.HostModel issues label Jan 23, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @agocke, @elinor-fung
See info in area-owners.md if you want to be subscribed.

@rzikm
Copy link
Member Author

rzikm commented Jan 23, 2026

@VSadov, @vitek-karas, @janvorli do you know what would be the easiest way to test/benchmark this kind of change?

@rzikm rzikm changed the title [DRAFT] Use Zstandard for compressing singlefile assemblies [NO-REVIEW] Use Zstandard for compressing singlefile assemblies Jan 23, 2026
@rzikm rzikm added the NO-REVIEW Experimental/testing PR, do NOT review it label Jan 23, 2026
@am11
Copy link
Member

am11 commented Jan 23, 2026

@VSadov, @vitek-karas, @janvorli do you know what would be the easiest way to test/benchmark this kind of change?

./build.sh clr+libs+packs -c Release, extract artifacts/packages/Shipping/xxx/dotnet-runtime-xxx.tar.gz into ./.dotnet2 and copy sdk dir ./.dotnet/sdk to ./dotnet2/sdk, adjust the versioned folder to match the shared framework (either change sfx version to match sdk or the other way around; I don't remember exactly), then cd .. && runtime/.dotnet2/dotnet new console -n helloworld && cd helloworld && ../runtime/.dotnet2/dotnet publish -p:PublishSingleFile=true -o dist && dist/helloworld. If you see Hello World!, you pass! :)

@jkotas
Copy link
Member

jkotas commented Jan 23, 2026

dotnet new console

For benchmarking, you may want to pick an app with more managed code, like self-contained ASP.NET webapi. We want to measure the binary and startup time (just make the app exit immediately and then you can just measure the time the process took to run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-HostModel Microsoft.NET.HostModel issues NO-REVIEW Experimental/testing PR, do NOT review it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants