We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad6b9cf commit 6444417Copy full SHA for 6444417
1 file changed
ext/json/ext/parser/parser.c
@@ -294,6 +294,8 @@ static const rb_data_type_t JSON_Parser_rvalue_stack_type = {
294
.dsize = rvalue_stack_memsize,
295
.dcompact = rvalue_stack_compact,
296
},
297
+ // We deliberately don't declare rvalue_stack as RUBY_TYPED_WB_PROTECTED
298
+ // because it churns a lot of values so trigering write barriers every time is very costly.
299
.flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_EMBEDDABLE,
300
};
301
0 commit comments