The question is rather vague, though after making a few assumption
here are some hopefully useful pointers:
You can compare the different generated code snippets if you use -S
during compilation:
go tool compile -S mytestfile.go
A Quick Guide to Go's Assembler: https://golang.org/doc/asm
The go
On Wed, Jul 17, 2019 at 11:24 AM wrote:
>
> Can somebody explain this code?
> How is the cpu doing? better than for{} ...
Who claims it's doing better than `for {}`? IDK, I haven't tested, but
I guess it should perform the same bad way.
> ... and select {} in CPU usage?
Now that's a different
Can somebody explain this code?
How is the cpu doing? better than for{} and select {} in CPU usage?
package main
func main() {
start:
goto start
}
https://play.golang.org/p/BZ-yfDFLgV8
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To