3 ms·
Can anyone talk about the state of the compiler in Go? How good/bad is the optimizer? That's not something you usually address early in language design.
by melling 15y ago
Can anyone talk about the state of the compiler in Go? How good/bad is the optimizer? That's not something you usually address early in language design.
- enneff 15y agoGo's gc compiler is relatively young and makes few optimizations (the compiled code still performs well - this particular benchmark compares Go's unoptimized json package with a mature C library). The gccgo compiler can take advantage of all gcc's code generation optimizations, and it's performance reflects this.