FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-99941: asyncio.Protocol.data_received now received immutable bytes by DarioDaF · Pull Request #100053 · python/cpython · GitHub

/ cpython Public

gh-99941: asyncio.Protocol.data_received now received immutable bytes - #100053

Merged
gvanrossum merged 4 commits into
python:mainfrom
DarioDaF:fix_#99941
Dec 10, 2022
Merged

gh-99941: asyncio.Protocol.data_received now received immutable bytes#100053
gvanrossum merged 4 commits into
python:mainfrom
DarioDaF:fix_#99941

Conversation

DarioDaF commented Dec 6, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Made asyncio.Protocol.data_received receive immutable object
bytes instead of bytearrays (like defined in the docs) with regression tests added
and opted to use memoryview to take the slices for performance on big buffers.

Performance test from #21442 done on my machine with 10
repetitions on release build with timings 0.043 (delta: 0.019) before patch
and 0.041 (delta: 0.010) after so no noticable change in performance.

ghost commented Dec 6, 2022
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

kumaraditya303 commented Dec 10, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

@gvanrossum Is this what you intended? I thought that we were going for a documentation update and some unittests though I might be misunderstanding. If this is to be accepted then we need more benchmarks with larger payloads to verify.

gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Just some nits for the news entry. I'll apply that and then merge.

python deleted a comment from netlify Bot Dec 10, 2022
gvanrossum merged commit 1bb68ba into python:main Dec 10, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL