bpo-41002: Optimize HTTPResponse.read with a given amount (GH-20943)
I've done the implementation for both non-chunked and chunked reads. I haven't benchmarked chunked reads because I don't currently have a convenient way to generate a high-bandwidth chunked stream, but I don't see any reason that it shouldn't enjoy the same benefits that the non-chunked case does. I've used the benchmark attached to the bpo bug to verify that performance now matches the unsized read case. Automerge-Triggered-By: @methane
B
Bruce Merry committed
152f0b8beea12e6282d284100b600771b968927a
Parent: cf18c9e
Committed by GitHub <noreply@github.com>
on 6/25/2020, 6:30:21 AM