[Mono-bugs] [Bug 655380] String switch statement runs 5x slower on iPhone if compared to simple list of if statements

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 23 04:28:07 EST 2010



--- Comment #8 from Paolo Molaro <lupus at novell.com> 2010-11-23 09:28:06 UTC ---
Marek, as even your program shows, there is no reason to use a hash table for
that case, on any architecture or .net implementation, so there is no need to
wait for a "comparison as fast as .net one", what is needed is just for the C#
compiler to produce reasonable code instead.
The test is also rigged to pessimize the if test, by using == instead of
string.Equals() and by never testing the "Start" case which is the first one.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list