4 ms·
Go 4x faster: wrap your existing tight loops in functions till a compiler fix
- reportaman 3y agoShows go compiler still has perf tuning to be done, and language might see decent speedup in applications where tight loops matter.
- 32gbsd 3y agoIt's seems like we are treading old ground
- reportaman 3y agoPlease post a link here.
- devit 3y ago"I think this is a consequence of variables being sent to a channel effectively having their address taken, disabling register allocation for them." Looks like the Go code generator and optimizer is absolutely terrible, since any reasonable optimizer has standard optimizations that prevent this. Apparently they wrote their own rather than using something established like LLVM, and this is the result.
- pdpi 3y ago> Apparently they wrote their own rather than using something established like LLVM, and this is the result. Go is self-hosted, and compilation is much faster than any LLVM-based compiler I know. Those are valuable properties. We can argue about how valuable, but it's not nearly as simple as a case of NIH as you're implying.