mruby-set: reduce KSET_INITIAL_SIZE to 4

This change optimizes memory consumption by reducing the initial size of
the set's internal hash table.

Co-authored-by: Gemini <gemini@google.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-08-02 15:13:51 +09:00
parent 8a7c758bbd
commit 7dc870c022
+1 -1
View File
@@ -34,7 +34,7 @@ kset_equal_value(mrb_state *mrb, mrb_value a, mrb_value b)
KHASH_DEFINE(set_val, mrb_value, char, FALSE, kset_hash_value, kset_equal_value)
#define KSET_INITIAL_SIZE 8
#define KSET_INITIAL_SIZE 4
/* Compatibility layer and type definitions */
typedef kh_set_val_t kset_t;