[Mono-bugs] [Bug 367354] Type.GetTypeCode() is slow

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 6 06:52:10 EST 2008


User juraj at hotfeet.ch added comment

--- Comment #3 from Juraj Skripsky <juraj at hotfeet.ch>  2008-03-06 04:52:10 MST ---
Hey Paolo, thanks for the optimization!

I should have been clearer in what point I was trying to make. I didn't mean to
compare the performance of MS.NET with Mono, merely the performance of IsInt
vs. IsInt2/IsInt3 above.

The results on MS.NET confirmed my expectations that Type.GetTypeCode + Switch
should be much faster than (t == typeof(...) || t == typeof(...) || ...). This
isn't the case on Mono and I thought it should/could be. But I have only an
extremely rough idea of what is going behind the scenes in Type.GetTypeCode...

Configure bugmail: https://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