L
Lloyd Dupont
just curiosity because I guess there isn't much I could do about it....
if I write
byte[] buf = ...;
int N = ...;
for(int i=0; i<N; i++)
do(buf);
will the code do a bound checking on the array on every single access to
buf or will it recognises that N, and buf.Length are constant and
optimize to only one bounds checking?
if I write
byte[] buf = ...;
int N = ...;
for(int i=0; i<N; i++)
do(buf);
will the code do a bound checking on the array on every single access to
buf or will it recognises that N, and buf.Length are constant and
optimize to only one bounds checking?