[Mono-list] List.FindAll method implementation

Juan C. Olivares juancri at gmail.com
Tue Mar 20 19:48:54 EDT 2007


it works fine for me :)

On 3/20/07, Juraj Skripsky <js at hotfeet.ch> wrote:
>
> Hi Miguel and Juan,
>
> I've just noticed the commit to List.FindAll(). Attached is an (small)
> optimization for the optimization:
>
> - the resulting List<T> is built directly as an array which is later on
> wrapped by a List<T> object. This eliminates the unnecessary overhead of
> List.Add().
> - the filling of the result array stops as soon as all found items are
> processed. If there are no matches at the end of the original list, this
> will give an small performance win.
>
> The test-run of the resulting code ran fine and it should always be
> faster than the version in svn.
>
>
> May I commit (with a changelog entry of course)?
>
> - Juraj
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>


-- 
Juan Cristóbal Olivares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070320/a739da42/attachment.html 


More information about the Mono-list mailing list