[Mono-devel-list] [Patch] Array.Sort

Marcus mathpup at mylinuxisp.com
Wed Mar 2 20:27:24 EST 2005


The MS implementation of Array.Sort attempts to check whether the Array it is 
passed can be converted to object[], and in that case it uses a verison of 
Quicksort that uses array indexers instead the slower Array accessors to 
access elements of the Array. Apparently, their JIT has special helpers for 
array indexers that do not exist Array.GetValue and Array.SetValue.

Has there been any consideration to doing that?


On Wednesday 02 March 2005 4:25 pm, Ben Maurer wrote:
> On Wed, 2005-03-02 at 16:06 -0600, Carlos Alberto Cortez wrote:
> > Attached is a patch for implementing Array.Sort generic methods. Could
> > somebody review it?
>
> There is one major risk to these patches:
>
> Array.Sort <T> will be a better binding than Array.Sort. This means that
> people will automatically be using the generic version.



More information about the Mono-devel-list mailing list