change increment argument in nasal_gc, because new vm doesn't need to alloc new objects frequently.

vm_str  2048 -> 512

vm_func 1024 -> 512

vm_vec  8192 -> 512
This commit is contained in:
ValKmjolnir 2022-02-03 22:43:51 +08:00
parent d6d90ab7c8
commit aa301aefc3
1 changed files with 11 additions and 11 deletions

View File

@ -29,9 +29,9 @@ const uint32_t increment[vm_type_size]=
0, // vm_nil
0, // vm_num
/* gc object */
2048, // vm_str
1024, // vm_func
8192, // vm_vec
512, // vm_str
512, // vm_func
512, // vm_vec
512, // vm_hash
64 // vm_obj
};