Golang, Performance, Programming.
image.NewGray(image.Rect(0, 0, width, height)) var w sync.WaitGroup w.Add(width) for i := 0; i < width; i++ { go func(i int) { for j := 0; j < height; j++ { m.Set(i, j, pixel(i, j, width, height)) } w.Done() }(i) } w.Wait() return m } As before, let’s run it without trace first to see whether we