Comment by CyberDildonics
4 days ago
alloca is just a couple of instructions to allocate more memory on the stack, it is much faster than malloc for pretty much every reason including locality and the fact that it doesn't have to be freed because it goes away after the current scope.
Is there a difference between:
and
under the assumption that this happens at the top-level of a function?
Not that I know of