]> Kevux Git Server - fll/commitdiff
Update: Further reduce memory allocation pressure by increasing default small allocation.
authorKevin Day <thekevinday@gmail.com>
Sat, 9 Jul 2022 16:29:51 +0000 (11:29 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 9 Jul 2022 16:29:51 +0000 (11:29 -0500)
Double the default small allocation size from 4 to 8.
This accepts the compromise that this will increase the amount of memory used in certain cases.

level_0/f_iki/c/iki/common.h
level_0/f_memory/c/memory/common.h

index 25c56ebfe544b03b6cf279715a1dd4674853a8fc..5fbe2e06dfc04f017734c8e2ac67a69d80ea143a 100644 (file)
@@ -437,7 +437,7 @@ extern "C" {
  */
 #ifndef _di_f_iki_default_allocation_step_
   #define F_iki_default_allocation_large_d F_memory_default_allocation_large_d
-  #define F_iki_default_allocation_small_d 4
+  #define F_iki_default_allocation_small_d 8
 #endif // _di_f_iki_default_allocation_step_
 
 #ifdef __cplusplus
index 2bc9bbf289eb18ae212496866909e7b3346d6351..7220413d2cbfd5c5dc2f9dff07297543bd2f47c8 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
  */
 #ifndef _di_f_memory_default_allocation_step_
   #define F_memory_default_allocation_large_d 64
-  #define F_memory_default_allocation_small_d 4
+  #define F_memory_default_allocation_small_d 8
 #endif // _di_f_memory_default_allocation_step_
 
 /**