Hi Siddharth, because you are touching possibly "hot" code paths, it is not possible to just move the allocation to the heap. You will have to check whether the number of used items is low enough and, if not, switch from the stack-allocated array to the heap. This way the stack-allocated array can be made smaller (e.g. 2K).
Thanks, Paolo On 11/03/2016 15:50, Siddharth Gupta wrote: >