27 ms·
You can read about the why here. https://stackoverflow.com/questions/25811445/what-are-the-primary-differences-between-gc-and-gccgo https://stackoverflow.com/q
by cogman10 6y ago
You can read about the why here.
https://stackoverflow.com/questions/25811445/what-are-the-primary-differences-between-gc-and-gccgo https://stackoverflow.com/questions/25811445/what-are-the-pr...
The short answer is that there are optimizations that the GC is doing which gccgo is not doing.
The long answer is that gc will do escape analysis which can avoid allocating on the heap, gccgo doesn't do that.
Why might LLVM be better suited? Primarily because the framework also supports JIT and has efforts from the likes of Azul to make their JVM faster. Most optimizations that would benefit Java will benefit go.
https://llvm.org/devmtg/2017-10/slides/Reames-FalconKeynote.pdf https://llvm.org/devmtg/2017-10/slides/Reames-FalconKeynote....