4 ms·
I'm not sure what you don't like? Sorry, must just be missing your point.
by tjdevries 4y ago
I'm not sure what you don't like? Sorry, must just be missing your point.
- kubanczyk 4y agoI'm guessing it's about creating a GOMAXPROCS pool of goroutines which are then (wastefully) competing with each other for an atomic loop counter. It got me curious what's faster when looping over a slice of million elements: to use a million separate goroutines or to use that pool.