mruby-array-ext: increase SET_OP_HASH_THRESHOLD from 16 to 32

We have more chance to avoid hash allocation in set-like methods. Since
memory situation heavily depends on the platform, we may need to make
this threshold configurable in the future.

Co-authored-by: Atlassian Rovo Dev
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-28 02:11:33 +09:00
parent da813e0486
commit f205c2233d
2 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ ary_rotate_bang(mrb_state *mrb, mrb_value self)
return self;
}
#define SET_OP_HASH_THRESHOLD 16
#define SET_OP_HASH_THRESHOLD 32
/*
* call-seq: