Skip to content

Faster Sequence Check, Exception Check, and sort method #666

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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

Vizonex
Copy link

@Vizonex Vizonex commented Jun 14, 2025

What do these changes do?

Introduces a Faster Sequence check and Lower level Exception Handle for Frozenlist in Cython. Exception Handle is especially important because -1 can be used by cython to find out if an exception was thrown sooner than later and then exit

Are there changes in behavior for the user?

Internal refractoring but I would hope for faster performance on deep copying and exception checking now.

Related issue number

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modifications, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep the list in alphabetical order, the file is sorted by name.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@Vizonex Vizonex changed the title Faster Sequence Check & Exception Check Faster Sequence Check, Exception Check, and sort method Jun 15, 2025
Copy link

codecov bot commented Jun 15, 2025

Codecov Report

❌ Patch coverage is 54.54545% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.30%. Comparing base (5667ab9) to head (00e093d).
⚠️ Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
tests/test_frozenlist.py 57.14% 3 Missing ⚠️
frozenlist/__init__.py 66.66% 1 Missing ⚠️
frozenlist/__init__.pyi 0.00% 0 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (50.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project check has failed because the head coverage (64.69%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #666      +/-   ##
==========================================
- Coverage   94.90%   94.30%   -0.61%     
==========================================
  Files          10       10              
  Lines         726      737      +11     
  Branches       48       50       +2     
==========================================
+ Hits          689      695       +6     
- Misses         13       17       +4     
- Partials       24       25       +1     
Flag Coverage Δ
CI-GHA 94.16% <54.54%> (-0.61%) ⬇️
MyPy 64.69% <25.00%> (-0.48%) ⬇️
OS-Linux 98.27% <50.00%> (-1.43%) ⬇️
OS-Windows 98.27% <50.00%> (-1.43%) ⬇️
OS-macOS 97.98% <50.00%> (-1.42%) ⬇️
Py-3.10.11 98.27% <50.00%> (-1.43%) ⬇️
Py-3.10.17 98.27% <50.00%> (-1.43%) ⬇️
Py-3.11.12 98.27% <50.00%> (-1.43%) ⬇️
Py-3.11.13 ?
Py-3.11.9 98.27% <50.00%> (-1.43%) ⬇️
Py-3.12.10 98.27% <50.00%> (-1.43%) ⬇️
Py-3.13.3 98.27% <50.00%> (-1.43%) ⬇️
Py-3.13.4 97.98% <50.00%> (-1.72%) ⬇️
Py-3.13.4t ?
Py-3.13.5 ?
Py-3.13.5t 98.27% <50.00%> (-1.43%) ⬇️
Py-3.9.13 98.27% <50.00%> (-1.43%) ⬇️
Py-3.9.22 98.27% <50.00%> (-1.43%) ⬇️
Py-3.9.23 ?
Py-pypy7.3.16 97.41% <50.00%> (-1.41%) ⬇️
Py-pypy7.3.19 97.41% <50.00%> (-1.41%) ⬇️
VM-macos-latest 97.98% <50.00%> (-1.42%) ⬇️
VM-ubuntu-latest 98.27% <50.00%> (-1.43%) ⬇️
VM-windows-latest 98.27% <50.00%> (-1.43%) ⬇️
pytest 98.27% <50.00%> (-1.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant