Only if you write your own memory allocator, otherwise relying on the compiler provided allocator is no different.
Just mentioning the issue for other readers, as many think malloc/NEW/Allocate or whatever is called, is fast.
Only if you write your own memory allocator, otherwise relying on the compiler provided allocator is no different.