[Mono-list] String comparisons slow

Alan alan.mcgovern at gmail.com
Wed Jul 21 15:35:50 EDT 2010


I believe that's the default since .NET 4.0. You'll have to check MSDN to be
sure though. I'm fairly sure there's a page explaining which type of string
sort is used where.

Alan.

On Wed, Jul 21, 2010 at 8:30 PM, David S <buttink at gmail.com> wrote:

> Ok. Now I'm confused. How come "CurrentCulture" for US/ENG doesn't just run
> the Ordinal??? Perhaps there are some weird alphabetizing things I just
> don't understand. BTW, Thanks for tell us about the StringComparer class. I
> never knew that existed.
>
>
> On Wed, Jul 21, 2010 at 2:56 PM, wtftc <bblinn at gmail.com> wrote:
>
>>
>> Thanks, guys. This helped.
>>
>> Michael is right here. StringComparer.Ordinal made the sorting about 8x
>> faster for me.
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/String-comparisons-slow-tp2296525p2297584.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100721/804f9ce7/attachment.html 


More information about the Mono-list mailing list