Eliminate copying of data in iOS protocol handler to improve performance
This change:
1. Eliminates data copying between URLRequest and the NSURLSession
client buffers.
2. Dynamically changes the size of the read buffer based on the size of
previously read data.
3. Account for the case when [NSInputStream:read] returns -1, that
indicates an error.
Some internal profiling tests show approx 2% overall network thread
improvement with this change.
BUG=724546
Review-Url: https://codereview.chromium.org/2968453002
Cr-Commit-Position: refs/heads/master@{#483705}
1 file changed