4 ms·
the most exciting one for me is definitely the new escape analysis.
by dis-sys 7y ago
the most exciting one for me is definitely the new escape analysis.
- ithkuil 7y agoDoes it offer any user visible improvements or is it only a compiler internal improvement?
- mvdan 7y agoIt might lead to fewer allocations in complex programs, as the compiler is able to put more in the stack under some edge cases.
- Insanity 7y agoYeah, useful for teams that want to use pointers everywhere and disregard escape analysis xD
- aaronbee 7y agoEven more exciting, this is already present in go1.13. I believe the author of these slides made a mistake. Here it is mentioned in go1.13 release notes: https://golang.org/doc/go1.13#compiler https://golang.org/doc/go1.13#compiler And GitHub says the commit is present in go1.13: https://github.com/golang/go/commit/996a687ebbf81b26f81b41b8e62ef21d8b0826af https://github.com/golang/go/commit/996a687ebbf81b26f81b41b8...
- agnivade 7y agoYeah it is slightly misleading. The escape analysis rewrite was done in 1.13. But work is now going on to remove the old escape analysis code.