2 ms·
Generally the stack, because the cache behavior is better and you can allocate an entire activation record at one time. The compiler is also often able to optim
by pcwalton 11y ago
Generally the stack, because the cache behavior is better and you can allocate an entire activation record at one time. The compiler is also often able to optimize the allocations better, for example by promoting stack objects to registers.