summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-07-22 14:21:05 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:24 +0900
commit2b45d454bc20b8f34695997c46a16a9d16d28faa (patch)
tree405dad4ab47601feac705981ce3d7c96c884a5a2 /src/hash.c
parentff0e3bcea6fd7d34d4fc6f3f78ef3e4120825401 (diff)
downloadmruby-2b45d454bc20b8f34695997c46a16a9d16d28faa.tar.gz
mruby-2b45d454bc20b8f34695997c46a16a9d16d28faa.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/hash.c')
0 files changed, 0 insertions, 0 deletions