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

Some boy scouting w.r.t. usage of our internal helper functions when handling collection ABC #3683

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

adamreichold
Copy link
Member

No description provided.

@adamreichold adamreichold added the CI-skip-changelog Skip checking changelog entry label Dec 21, 2023
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, love to see negative-diff tidy ups which also improve QoL for users!

// TODO: surface errors in this chain to the user
.unwrap_or(false)
.unwrap_or_else(|err| {
err.write_unraisable(object.py(), Some(object));
Copy link
Member

Choose a reason for hiding this comment

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

Using write_unraisable here is a very good idea 👍

Copy link

codspeed-hq bot commented Dec 21, 2023

CodSpeed Performance Report

Merging #3683 will improve performances by 39.42%

Comparing use-type-ref-helper (3c97167) with main (7f626b2)

Summary

⚡ 2 improvements
✅ 76 untouched benchmarks

Benchmarks breakdown

Benchmark main use-type-ref-helper Change
mapping_from_dict 347.8 ns 249.4 ns +39.42%
sequence_from_list 347.8 ns 278.9 ns +24.7%

@adamreichold adamreichold added this pull request to the merge queue Dec 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Dec 21, 2023
@adamreichold adamreichold added this pull request to the merge queue Dec 21, 2023
Merged via the queue into main with commit 5b12cf1 Dec 21, 2023
36 of 37 checks passed
@adamreichold adamreichold deleted the use-type-ref-helper branch December 21, 2023 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants