[Mono-dev] Stack<T> performance
Miguel de Icaza
miguel at novell.com
Mon Feb 25 01:29:48 EST 2008
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, whenever the stack reaches zero size it
> reallocates the array, even if the array is not null or ‘zero length
> array’.
>
>
>
> Please review.
>
>
>
> Regards,
>
> Roei Erez
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list