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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 5 11:59:14 EST 2008


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

User lupus at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=367354#c2





--- Comment #2 from Paolo Molaro <lupus at novell.com>  2008-03-05 09:59:14 MST ---
Please qualify what slow and fast PC mean, without that your numbers are pretty
meaningless except for telling us mono is lots faster for one case.
GetTypeCode has been slowed down by the people doing the user-defined work, a
simple:
  if (type is MonoType)
    return GetTypeCodeInternal (type);
at the top gives a significant improvement (6.598 to 5.159).
Just 16% of the time is spent in the managed->unmanaged transition, so just
moving the code to managed is not going to get us a significant perf increase.
The value could be precomputed, but it would require additional memory usage
and your numbers don't suggest this is a real need.


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