[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 02:53:25 EST 2010


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

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


--- Comment #6 from Paolo Molaro <lupus at novell.com> 2010-11-23 07:53:24 UTC ---
My guess is that for <= 3/4 items we should do a cascading if sequence, for up
to 15 or so a binary search using OrdinalCompare, and only for higher string
counts go for the hash.

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