Golang, Performance, Programming.
height; j++ { m.Set(i, j, pixel(i, j, width, height)) } } w.Done() }() } for i := 0; i < width; i++ { c <- i } close(c) w.Wait() return m } How much faster is this? $ time ./mandelbrot ./mandelbrot 4.72s user 0.04s system 495% cpu 0.962 total Pretty fast! And if we added a buffer to the channel, as