Re: [Mono-dev] Stack performance

2008-02-24 Thread Miguel de Icaza
Hey Roei, Please, feel free to commit (include a ChangeLog entry). On Wed, 2008-02-20 at 09:13 -0800, Roei Erez wrote: > Hi, > > Attached is a small patch that gives a large performance improvement > in the scenario where the stack is popped until empty. > > Notice that before the patch, w

[Mono-dev] Stack performance

2008-02-20 Thread Roei Erez
Hi, Attached is a small patch that gives a large performance improvement in the scenario where the stack is popped until empty. Notice that before the patch, whenever the stack reaches zero size it reallocates the array, even if the array is not null or 'zero length array'. Please review.