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

Less const_get #1208

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Less const_get #1208

merged 1 commit into from
Aug 7, 2023

Conversation

kddnewton
Copy link
Collaborator

Right now whenever you go to create a Ruby object from a C struct we dynamically look up the constants. This is not great for performance. Now instead we template out a constant for each VALUE that holds the classes, and then directly reference it.

Right now whenever you go to create a Ruby object from a C struct
we dynamically look up the constants. This is not great for
performance. Now instead we template out a constant for each VALUE
that holds the classes, and then directly reference it.
@kddnewton kddnewton merged commit 6602b58 into main Aug 7, 2023
20 of 21 checks passed
@kddnewton kddnewton deleted the less-const-get branch August 7, 2023 19:55
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