performance speedup

This commit is contained in:
2026-06-08 07:47:44 +02:00
parent 5a84b57b25
commit c134adc3b1
3 changed files with 25 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ void MIHP_PlatformOnHeapCorruptionDetected(MIHP_HeapCorruptionInfo info)
__debugbreak();
}
#define NUM_ALLOCATIONS (4096 * 512)
#define NUM_ALLOCATIONS (4096 * 128)
void* myptrs[NUM_ALLOCATIONS] = { 0 };
@@ -31,7 +31,7 @@ int main()
config.AllocationInitialValue = 0xbe;
config.AllocationAlignment = 16;
config.MinimalMemoryAreaSize = 4096 * 32;
config.MaximalMemoryAreaSize = 4096ull * 4096ull * 4096ull;
config.MaximalMemoryAreaSize = 4096ull * 4096ull;
MIHP_HeapInfo* myHeap = MIHP_CreateHeap(config);
for (int i = 0; i < NUM_ALLOCATIONS; i++)