Hacker News new | ask | show | jobs
by tjdevries 1251 days ago
I'm not sure what you don't like? Sorry, must just be missing your point.
1 comments

I'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.