Golang, Performance, Programming.
computed concurrently, we are going to create a goroutine per pixel. This, for our 2048x2048 image, means we’re going to create over four million goroutines. We say goroutines are cheap … so let’s seee if that’s true! The function that creates a goroutine per pixel is called createPixel: func