csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

NativeAOT to improve performance for formatting a single file

Open belav opened this issue 3 years ago • 5 comments

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

belav avatar Nov 05 '21 20:11 belav

Followed the instructions at https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/compiling.md

image

belav avatar Nov 11 '21 16:11 belav

now that .NET 7 is out, are there some technical blockers from moving to native aot? just wondering about the current state

OneCyrus avatar Jan 27 '23 08:01 OneCyrus

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.

belav avatar Jan 28 '23 16:01 belav