2 ms·
Is AOT compiling your binaries [1] an option for you? The starting size of AOT compiled C# can beat Go in size [2] and from there it really depends on what you
by MStrehovsky 2y ago
Is AOT compiling your binaries [1] an option for you? The starting size of AOT compiled C# can beat Go in size [2] and from there it really depends on what you do and how you do it. Some simple ASP.NET server with https and routing can comfortably fit under 10 MB and there are compilation options that can help optimize further [3].
[1] https://learn.microsoft.com/dotnet/core/deploying/native-aot/ https://learn.microsoft.com/dotnet/core/deploying/native-aot...
[2] https://github.com/MichalStrehovsky/sizegame?tab=readme-ov-file#round-4-results https://github.com/MichalStrehovsky/sizegame?tab=readme-ov-f...
[3] https://learn.microsoft.com/dotnet/core/deploying/native-aot/optimizing https://learn.microsoft.com/dotnet/core/deploying/native-aot...
- hakanderyal 2y agoI looked into it but some libraries I've been using wasn't compatible with AOT. I'll check it again when I have more time. Thanks.