bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimization for compile speed?

opened this issue · comments

I want to use only bflat for my C# development but the fact is the compilation speed is too slow so I still have to use .NET SDK during the development process and only use bflat to compile the final product. Perhaps this is the wrong way to use bflat as it's only an AOT compiler and thus can't completely replace .NET SDK but I really want to get rid of .NET SDK and use only bflat. bflat also advertised itself as C# but with a Go-inspired tooling so it's assumed that I could use bflat as a replacement to .NET SDK. But to make such a thing possible first you must improve the compilation speed.

We would need a investment into incremental compilation upstream for native Aot in .net in general. It's not something I could take on for bflat only. Upstream doesn't think it's too important because there's always the jit and it's preferred for debug time.

That said there were some improvements for compile throughput in .net 8 that bflat will pick up soon. It's not incremental compilation though. We still need to compile everything in the app all the time