Than why would it get slower after a certain number of iterations. Do you
know where I can find documentation on what the JIT optimizer will do for
Fields vs. Properties?
Thanks for your response, Sean.
James
> >I was trying to find out the fastest way (coding standards and best
> >practices
[quoted text clipped - 9 lines]
> If your properties are simple accessor properties, then the JIT will
> optimize the calls away to direct field access.
Sean Hederman - 20 Jan 2005 21:23 GMT
> Than why would it get slower after a certain number of iterations. Do you
> know where I can find documentation on what the JIT optimizer will do for
> Fields vs. Properties?
I have no idea why it would slow down, I'm afraid.
Have a look at:
http://discuss.develop.com/archives/wa.exe?A2=ind0205A&L=DOTNET&P=R1154
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/d
otnetperftechs.asp
JEB - 20 Jan 2005 22:41 GMT
Thanks, Sean. This answers my question and gives me some direction to
explain why there is a performance difference.
JEB
> > Than why would it get slower after a certain number of iterations. Do you
> > know where I can find documentation on what the JIT optimizer will do for
[quoted text clipped - 5 lines]
> http://discuss.develop.com/archives/wa.exe?A2=ind0205A&L=DOTNET&P=R1154
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/d
otnetperftechs.asp