L
Lance
I have a couple of optimization questions:
1. Is there any way to force array bounds checks to be
disabled as you could do in VB6? I know that using
something like "For i as Integer = 0 to
myArray.GetUpperBound(0)" is supposed to automatically
disable array bounds checks for that loop, but this
doesn't do any good if you are looping through part of an
array.
2. Is there any way to locally disable integer overflow
checks? For example, I have a method that converts an
array of doubles to an array of integers and I know with
absolute certainty that none of the values in the double
array exceed the min and max values of an integer. It
sure would be nice to disable integer overflow checks for
just that method.
Thanks,
Lance
1. Is there any way to force array bounds checks to be
disabled as you could do in VB6? I know that using
something like "For i as Integer = 0 to
myArray.GetUpperBound(0)" is supposed to automatically
disable array bounds checks for that loop, but this
doesn't do any good if you are looping through part of an
array.
2. Is there any way to locally disable integer overflow
checks? For example, I have a method that converts an
array of doubles to an array of integers and I know with
absolute certainty that none of the values in the double
array exceed the min and max values of an integer. It
sure would be nice to disable integer overflow checks for
just that method.
Thanks,
Lance