Viv,
There are a few permutations of what will happen based on the optimizers analysis of your code ie. is the array on the stack etc. It could decide to unroll and inline the loop completely, or it could decide to re-order instructions for better cache coherence?
The point I should have added to my original comment was that MS are putting a huge amount of time and effort into optimizing JITters (go look at Pheonix and POGO) to the point where they can actually generate code based on how the user "uses" the application!
You should make sure that you optimize for algorithmic efficiency and not assume that the IL represents the actual native code being generated!
Regards
Neil
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only