grpc-java
grpc-java copied to clipboard
core: optimize to reduce excessive onReady() in hedging
In hedging, multiple substreamListener.onReady() may be invoked concurrently, that may result in excessive masterListener.onReady() calls (although synchronized). This PR reduces some obvious excessive onReady() calls, by checking individual substream's isReady() rather than the global isReady(). Excessive onReady() still exists even after this PR though.