csharpier
csharpier copied to clipboard
NativeAOT to improve performance for formatting a single file
NativeAOT may be a solution to the problem of csharpier being slow to format a single file. It will be in .net7 https://github.com/dotnet/runtime/issues/61231 It is currently experimental, and I believe can be tested now to see if it would solve the problem https://github.com/dotnet/runtimelab/tree/feature/NativeAOT#readme
Followed the instructions at https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/compiling.md

now that .NET 7 is out, are there some technical blockers from moving to native aot? just wondering about the current state
I don't believe it is possible to publish a dotnet tool with NativeAOT. ReadyToRun is another possibility to improve startup time that I just saw. There is an open issue around support for dotnet tools and ReadyToRun https://github.com/dotnet/sdk/issues/10801, but I haven't seen one for NativeAOT.