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

Use intern macro for getattr strings #39

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Conversation

Cleptomania
Copy link
Member

Converts the strings within getattr calls in the collision detection functions to use the intern macro from PyO3, this gives a pretty big performance boost considering these calls happen in very hot loops.

See: https://pyo3.rs/main/doc/pyo3/macro.intern.html

@Cleptomania Cleptomania merged commit 0b7d563 into development Mar 3, 2024
2 checks passed
@Cleptomania Cleptomania deleted the string-intern branch March 3, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant