Re:Conc: Better Structured Concurrency for Go
by tjdevries on Wednesday January 11, 2023 @08:12PM
(#34347706)
I'm not sure what you don't like? Sorry, must just be missing your point.
Re:Conc: Better Structured Concurrency for Go
by kubanczyk on Thursday January 12, 2023 @05:45PM
(#34361323)
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.
Let's go see what ForEach does, to make sure: https://github.com/sourcegraph/conc/blob/main/iter/iter.go#L...
Yeah I'm gonna go with a giant nope. Getting that through review is rather concerning to say the least, for something you'd be basing your most-complex and most-needing-correctness code around.