Skip to content

Minor Changes #4561

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 2 commits into from
Jun 26, 2025
Merged

Minor Changes #4561

merged 2 commits into from
Jun 26, 2025

Conversation

JorjMcKie
Copy link
Collaborator

Speed up rectangle intersection check (issue #4527): avoid calculating an intersection rectangle.

Address #4462: Support single int as argument.

Speed up rectangle intersection check (issue #4527): avoid calculating an intersection rectangle.

Address #4462: Support single int as argument.
@JorjMcKie JorjMcKie changed the title Update __init__.py Minor Changes Jun 13, 2025
@JorjMcKie
Copy link
Collaborator Author

The changed intersects() algorithm is on average 3.8 times faster, mainly because it no longer builds the actual intersection rectangle to check its emptiness.

@JorjMcKie JorjMcKie merged commit 9602b7c into main Jun 26, 2025
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2025
@JorjMcKie JorjMcKie deleted the minor-things branch June 26, 2025 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants