Currently we end up with millions of goroutines waiting on semaphores during a full PDS resync if we run against all production PDSs, this fix waits for the semaphore before spawning the goroutine reducing allocs and the size of the stack significantly.
Currently we end up with millions of goroutines waiting on semaphores during a full PDS resync if we run against all production PDSs, this fix waits for the semaphore before spawning the goroutine reducing allocs and the size of the stack significantly.