Improve Allocation of Storage

Storage allocated by _alloca, calloc, malloc and realloc is 8-byte aligned. When you copy data into storage allocated by these functions, be careful to copy it to the same boundaries. In particular, aligning double precision floating-point variables and arrays on 8-byte boundaries can greatly improve performance.

You can use _alloca, malloc or DosAllocMem to allocate storage.

You can use _alloca, malloc,or HeapAlloc to allocate storage:



Overview of Optimization


Optimize Your Application


Differentiating between Memory Management Functions
C Library Functions: Dynamic Memory Management