Hacker News new | ask | show | jobs
by vexna 1823 days ago
replied with this on another post, but you can add `-p:PublishReadyToRun=true` to your `dotnet publish` command to do AOT. it blows up your binary in size, but pretty much gives your warmed up code from the start.
1 comments

it doesn't fully AOT your app and worse it doesn't produce a native static executable

it runs few tier for JIT, it still ship with IL and the JIT

don't advertise ReadyToRun as "hey we got AOT at home, says Microsoft salesman"

because all it does is makes me want to use Go instead, it feels and sounds bloaty