Skip to content

Minor Changes#4561

Merged
JorjMcKie merged 2 commits into
mainfrom
minor-things
Jun 26, 2025
Merged

Minor Changes#4561
JorjMcKie merged 2 commits into
mainfrom
minor-things

Conversation

@JorjMcKie
Copy link
Copy Markdown
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
Copy Markdown
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