8000 bpo-44222: Improve _removeHandlerRef() for a very long _handlerList by Jongy · Pull Request #26325 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44222: Improve _removeHandlerRef() for a very long _handlerList #26325

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

Merged
merged 3 commits into from
May 25, 2021

Conversation

Jongy
Copy link
Contributor
@Jongy Jongy commented May 24, 2021

The list lookups become a big burden for very long lists.
This patch changes the "happy flow" path of 2 lookups into 1 lookup.

https://bugs.python.org/issue44222

Automerge-Triggered-By: GH:vsajip

The list lookups become a big burden for very long lists.
This patch changes the "happy flow" path of 2 lookups into 1 lookup.
@Jongy Jongy force-pushed the improve-removehandlerprefix branch from da586c8 to 7453857 Compare May 24, 2021 01:21
Copy link
Member
@vsajip vsajip left a comment

Choose a reason for hiding this comment

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

Please remove the NEWS entry, as per the comment on it.

@@ -0,0 +1,2 @@
Improve the performance of _removeHandlerRef() for very long _handlerLists.
Copy link
Member

Choose a reason for hiding this comment

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

I've added the skip-news label, so this file shouldn't be necessary (it's too low-level a detail for the NEWS file). You can remove this, your name should appear as author in the commit message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still haven't got the hang of when we add NEWS entry and when we don't 😞 (in previous PRs I've added NEWS files for even lower-level changes, such as 3505261. Perhaps because they were bugfixes and not just improvements?)

Anyway - sure, removing it

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

This reverts commit 43782f8.
@Jongy
Copy link
Contributor Author
Jongy commented May 25, 2021

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@vsajip: please review the changes made to this pull request.

@miss-islington miss-islington merged commit 156699b into python:main May 25, 2021
@Jongy Jongy deleted the improve-removehandlerprefix branch May 25, 2021 22:49
@Jongy
Copy link
Contributor Author
Jongy commented May 25, 2021

Thanks for reviewing @vsajip :)

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.

5 participants
0