Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport Morsel creation speed up patch from cpython gh-126156 #284

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 1, 2024

Improved performances of creating :py:class:~http.cookies.Morsel objects by a factor of 3.8x.

Should also get backported to 3.13 when it becomes available

Backport of python/cpython@dd3c0fa

@edenhaus
Copy link
Contributor

edenhaus commented Nov 5, 2024

Python 3.13 was merged and therefore now available

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Can you add it to the 3.13 too?

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Using the right button this time.

@home-assistant home-assistant bot marked this pull request as draft November 5, 2024 10:36
@home-assistant
Copy link

home-assistant bot commented Nov 5, 2024

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@bdraco
Copy link
Member Author

bdraco commented Nov 5, 2024

Pushed the patch to 3.13 as well

Will mark it ready for review if CI passes.

Looks like things are busy now so will need to come back and check it later

@bdraco
Copy link
Member Author

bdraco commented Nov 5, 2024

#7 7.301 patching file Lib/http/cookies.py

It looks like its patching ok on 3.12 and 3.13

@bdraco bdraco marked this pull request as ready for review November 5, 2024 20:19
@home-assistant home-assistant bot requested a review from frenck November 5, 2024 20:19
Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Thanks, @bdraco 👍

../Frenck

@frenck frenck merged commit 23602a3 into master Nov 7, 2024
88 checks passed
@frenck frenck deleted the morsel branch November 7, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants