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

Avoid using RARRAY_PTR #842

Merged
merged 1 commit into from
Feb 1, 2023
Merged

Avoid using RARRAY_PTR #842

merged 1 commit into from
Feb 1, 2023

Conversation

casperisfine
Copy link
Contributor

This macro marks the array as not protected by a write barrier which has negative effects on GC performance.

As far as I could tell, all the uses in Oj are purely for read so we can use RARRAY_CONST_PTR which is effectively the same but doesn't unprotect the array.

cc @peterzhu2118

This macro marks the array as not protected by a write barrier
which has negative effects on GC performance.

As far as I could tell, all the uses in Oj are purely for read
so we can use `RARRAY_CONST_PTR` which is effectively the same
but doesn't unprotect the array.
@ohler55 ohler55 merged commit 5268a63 into ohler55:develop Feb 1, 2023
@casperisfine casperisfine mentioned this pull request Apr 3, 2023
40 tasks
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.

None yet

3 participants