[Mono-list] callvirt instruction performance penalty?

2013-03-11 Thread Nigel Delaney
Hi All, I had a quick question I was hoping someone could answer about the always emit callvirt instruction pattern. I had always understood that one of the great advantages of C# over Java was, as Miguel put it on his blog about porting Android from java, virtual methods were made opt-in,

Re: [Mono-list] callvirt instruction performance penalty?

2013-03-11 Thread Jonathan Pryor
On Mar 11, 2013, at 8:47 PM, Nigel Delaney nigel.dela...@outlook.com wrote: However, I was surprised to learn when disassembling code that both Mono and Microsoft seem to ignore this optimization, and emit all method calls as callvirt instructions in IL regardless of whether or not they are