3 ms·
Well, to begin with, Go passes function arguments in registers since 1.17 Go 1.17 implements a new way of passing function arguments and results using register
by bugfix-66 4y ago
Well, to begin with, Go passes function arguments in registers since 1.17
Go 1.17 implements a new way of passing function arguments and results using registers instead of the stack. Benchmarks for a representative set of Go packages and programs show performance improvements of about 5%, and a typical reduction in binary size of about 2%. (https://go.dev/doc/go1.17 https://go.dev/doc/go1.17)
I think the basic problem here is that you don't know the facts.
- pclmulqdq 4y agoI think you misunderstand my point: The problem is that it took until around 2020 for this work to start. Around 2015, a lot of would-be adopters from C and C++ didn't jump on the Go bandwagon because of the perf gap. I use Go a lot today, as a former user of both C and C++, but Rust is probably better as a C/C++ replacement.