Sparsh Mittal <
sparsh...@gmail.com>
writes:
> I am doing concurrent programming. In each iteration, I issue say P
> goroutines and then at end of iteration, I synchronize them using
> WaitGroup.
> So it scales well till 2 goroutine, but because of this
> synchronization bottleneck, it does not scale well to 4 or 8. So, I
> was wondering, if I could do something.
The number of things these goroutines could have their own bottlenecks
is at least as large as the total number of programs ever written, yet
you didn't describe this most important part, or even some profiler
output.
I'm guessing you're doing something that doesn't scale, but I'm only
guessing that because it's not scaling. I can't guess *what* you're
doing that doesn't scale without seeing the code.
--
dustin