[Mono-bugs] [Bug 81663][Wis] Changed - Performance: Delegate optimization, DLR and IronPython

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 25 09:45:23 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lupus at ximian.com.


--- shadow/81663	2007-05-24 22:42:01.000000000 -0400
+++ shadow/81663.tmp.22240	2007-05-25 09:45:23.000000000 -0400
@@ -189,6 +189,13 @@
 So, instead of having all these problems with generating/selecting the
 right delegate method and fixing the calling convention, a simple
 patch in the invoke call site might fix it. I just don't know if the
 code increase overhead would be significant.
+------- Additional Comments From lupus at ximian.com  2007-05-25 09:45 -------
+Rodrigo made me check the generated code: we call the delegate invoke
+method virtually, in my discussion above I assumed it was a
+non-virtual call because that is what should happen: the Invoke method
+is virtual, but the type is static, so we should use a direct call.
+This optimization should benefit also all the other such cases.

More information about the mono-bugs mailing list