I think the stack is faster. But she's not a friend
in my experience It takes different time depending on the situation I didn't do that when I used the stack Which is faster, stack allocation or heap allocation?
performance c++ memory stack heap
Stack allocation is faster.
The stack has a stack pointer It's a bit complicated because I use memory pool, but the performance is better than hip allocation.
© 2024 OneMinuteCode. All rights reserved.