summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBruce Merry <bmerry@ska.ac.za>2020-06-25 06:30:21 (GMT)
committerGitHub <noreply@github.com>2020-06-25 06:30:21 (GMT)
commit152f0b8beea12e6282d284100b600771b968927a (patch)
treebe477e3f5f3886186aff7d183d21772beb8b607b /Misc
parentcf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b (diff)
downloadcpython-152f0b8beea12e6282d284100b600771b968927a.zip
cpython-152f0b8beea12e6282d284100b600771b968927a.tar.gz
cpython-152f0b8beea12e6282d284100b600771b968927a.tar.bz2
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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-06-17-17-26-24.bpo-41002.NPBItE.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-06-17-17-26-24.bpo-41002.NPBItE.rst b/Misc/NEWS.d/next/Library/2020-06-17-17-26-24.bpo-41002.NPBItE.rst
new file mode 100644
index 0000000..c3eebb7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-06-17-17-26-24.bpo-41002.NPBItE.rst
@@ -0,0 +1 @@
+Improve performance of HTTPResponse.read with a given amount. Patch by Bruce Merry.