mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user