3 ms·
Can you share some more details about what those optimizations are? Can you point us to a link?
by limxto0 7y ago
Can you share some more details about what those optimizations are? Can you point us to a link?
- foldr 7y agohttps://quasilyte.dev/blog/post/go_ssa_rules/ https://quasilyte.dev/blog/post/go_ssa_rules/ is maybe a good starting point.
- __HYde 7y agoYou could try compiling with and without `-gcflags '-N -l'` `-N` disables optimization and `-l` disables in-lining. I also found this[0] page which lists some optimizations done by the compiler. [0] https://github.com/golang/go/wiki/CompilerOptimizations https://github.com/golang/go/wiki/CompilerOptimizations edit: You can see what the compiler emits as assembly code with `-gcflags '-S'` so you can compare the optimized vs unoptimized assembly.