I know this sounds like a general question and I\'ve seen many similar questions (both here and on the web) but none of them are really like my dilemma.
when allocating buffers on stack the optimization scope is not the cost of accessing the memory but rather the elimination of often very expensive dynamic memory allocation on the heap (stack buffer allocation can be considered instantaneous as the stack as a whole is allocated at thread startup).