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 objc2 #566

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Use objc2 #566

merged 1 commit into from
Apr 30, 2024

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Apr 30, 2024

objc2 is a replacement for objc that contains a bunch of safety and performance improvements, including Id and msg_send_id! which automatically upholds memory management rules.

Specifically for glfw-rs, this is likely ever so slightly faster, as the message sending can be done without needing to put the view into an autorelease pool. Perhaps not, since we now also check the returned value.

Note: We could've used objc2-app-kit to avoid the manual msg_send_id! here, but the extra dependency seemed excessive.

This is likely slightly faster, as the message sending can be done
without needing to put the view into an autorelease pool (an internal
optimization).

We could've used `objc2-app-kit` to avoid the manual `msg_send_id!`
here, but the extra dependency seemed excessive.
@bvssvni
Copy link
Member

bvssvni commented Apr 30, 2024

Merging.

@bvssvni bvssvni merged commit 6b0491f into PistonDevelopers:master Apr 30, 2024
@bvssvni
Copy link
Member

bvssvni commented Apr 30, 2024

Thanks!

@madsmtm madsmtm deleted the objc2 branch April 30, 2024 19:01
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.

2 participants