[Mono-dev] Stack<T> performance

Roei Erez roeie at mainsoft.com
Wed Feb 20 12:13:25 EST 2008


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


Please review.



Roei Erez


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080220/f909f871/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stack_preformance.patch
Type: application/octet-stream
Size: 393 bytes
Desc: stack_preformance.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080220/f909f871/attachment.obj 

More information about the Mono-devel-list mailing list