[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
Mon Nov 22 18:10:31 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=655380

https://bugzilla.novell.com/show_bug.cgi?id=655380#c2


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vargaz at gmail.com

--- Comment #2 from Zoltan Varga <vargaz at gmail.com> 2010-11-22 23:10:29 UTC ---
The switch version is slower on x86 too by about 30% on HEAD, since it uses a
hash table under the hood. I think the threshold for using a hash table should
be increased, using it for a switch with three cases seems like an overkill.

-- 
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