K
Kaniga
I've been trying to figure this one out:
The CLR is said to do memory checks on memory access,
such as access to arrays and type-safety checks.
Now does this mean that every action of this sort would require a
memory check.
i.e.
if we are accessing an array, then in addition to the memory access,
we'll incur a performance hit of a memory check that sees to it that we
didn't go out-of-bounds.
This seems as if this would cause our application to do these kind of
checks so frequently that our performance would generally degrade
(accessing an array 1000 times would cause this check 1000 times) as
apposed to a non-managed access.
Are these checks negligible and doesn't affect performance ?
or maybe I'm missing something ?!
The CLR is said to do memory checks on memory access,
such as access to arrays and type-safety checks.
Now does this mean that every action of this sort would require a
memory check.
i.e.
if we are accessing an array, then in addition to the memory access,
we'll incur a performance hit of a memory check that sees to it that we
didn't go out-of-bounds.
This seems as if this would cause our application to do these kind of
checks so frequently that our performance would generally degrade
(accessing an array 1000 times would cause this check 1000 times) as
apposed to a non-managed access.
Are these checks negligible and doesn't affect performance ?
or maybe I'm missing something ?!