SpdySessionPool: Invoke request deleted callbacks more discriminately.
Previously, we'd invoke them whenever any request was deleted or when a SpdySession is created. With this CL, we invoke them only when the first request is deleted or a SpdySession is created. This reduces the number of PostTasks and searches through std::maps when we have a bunch of requests all waiting on the creation of the same SpdySession. Bug: 912727 Change-Id: I5083137cf0726e3b1ddb3ac4608b706121964cbf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570914 Commit-Queue: Matt Menke <mmenke@chromium.org> Reviewed-by:Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#652597}
Showing
Please register or sign in to comment