dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.42k stars 199 forks source link

[NativeAOT-LLVM] Eliminate gratituous allocations from the LLVM object writer #2319

Closed SingleAccretion closed 1 year ago

SingleAccretion commented 1 year ago

Also make it one-pass, there is no reason for it not to be.

The object writer is still pretty slow (1.5s in Release build for HelloWasm on my machine), but the rest of issues are not as easy to deal with.

Contributes to #2300.

SingleAccretion commented 1 year ago

@dotnet/nativeaot-llvm