Bob Powell [MVP] <bob@_spamkiller_bobpowell.net> wrote:
> Strange as it may seem, especially as I am a big C# user that really can't
> stand VB on moral grounds ;-)... There are some instances where the VB
> compiler generates neater and demonstrably faster code than the exact
> equivalent C# code.
Interesting - do you have any examples? I've seen the exact reverse,
where the VB.NET compiler generates fewer IL instructions, but bigger
ones, such that the size of a method in bytes is bigger for VB.NET than
for C#. In cases like that, it's possible for the size to go over the
inlined/not-inlined boundary and make the C# code faster. The chances
of that being significant are absolutely miniscule, of course - but I
hadn't heard about the reverse situation.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too