[Mono-bugs] [Bug 535425] Slow performance of <string>.Contains(), <string>.BeginsWith etc. Compared to MS'.NET runtime
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 28 21:33:06 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=535425
User joncham at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535425#c4
--- Comment #4 from Jonathan Chambers <joncham at gmail.com> 2009-09-28 19:33:04 MDT ---
Created an attachment (id=320192)
--> (http://bugzilla.novell.com/attachment.cgi?id=320192)
PATCH using CompareOptions.Ordinal
According to MSDN documentation on Contains: This method performs an ordinal
(case-sensitive and culture-insensitive) comparison.
We were using CompareOptions.None. This patch takes my test case from 114520 ms
to 2944 ms. This is in Linux on a virtual machine. I don't have a recent build
of mono on Windows handy, but with .Net on the same machine I get 1888 ms.
Anyone have a quick suggestion to test whether the MSDN documentation is
correct?
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list