summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-07-22 14:21:05 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-07-22 15:01:53 +0900
commit5533c2983373a9fca5a97074ebe9258841ce4d00 (patch)
treee899a38e6482a78e4a456e0643d6aa907ea430be /src/variable.c
parent0bb4d10ca7dacaeb5873cfd2e61423e8a4222350 (diff)
downloadmruby-5533c2983373a9fca5a97074ebe9258841ce4d00.tar.gz
mruby-5533c2983373a9fca5a97074ebe9258841ce4d00.zip
Use `mrb_field_write_barrier` instead of `mrb_write_barrier` for `push`.
When the array is very big, the simpler `mrb_write_barrier` causes calling `gc_mark_children` for big arrays repeatedly. That would hinder performance very badly.
Diffstat (limited to 'src/variable.c')
0 files changed, 0 insertions, 0 deletions