Rollonz.com is social bookmarking site.There is no need of registration.


Digging Into NET Loop Performance, Bounds-checking, Iteration, and Unrolling - CodeProject posted by user XMLBee 1064 days ago

In this article I am going to go into detail about how NET treats loops involving array and collection access and what kinds of optimizations you can expect I had mentioned some of these in a previous article, but in this article, we’re going to go deep and see many more examples Were going to dig in

Bounds checks exist in .NET because the CLR must ensure memory safety at all times in managed code. It needs to simply be impossible for managed code to corrupt memory outside of the defined data structures. This means that code like the following cannot be allowed to execute: Collapse | Copy Code int[] array = new int[100]; array[100] = 1;


To add a comment, please sign in