forked from ohler55/oj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using RARRAY_PTR (ohler55#842)
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. Co-authored-by: Jean Boussier <[email protected]>
- Loading branch information
1 parent
7395490
commit 5268a63
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters