I am trying to understand which is quicker.
When I use an array or types I can index directly into the array and change a field on a type
Array(x).TypeName = xxx
In a List I have to Get the type into a Type variable, change the value and then Set the Type back into the List.
When expanding a Array I have to make a new array on size bigger and copy over the whole array
When expanding a List I can just Add an entry
Do these trade offs mean anything?
Is there ANY savings using one over the other? If so when?
Thanks
BobVal
When I use an array or types I can index directly into the array and change a field on a type
Array(x).TypeName = xxx
In a List I have to Get the type into a Type variable, change the value and then Set the Type back into the List.
When expanding a Array I have to make a new array on size bigger and copy over the whole array
When expanding a List I can just Add an entry
Do these trade offs mean anything?
Is there ANY savings using one over the other? If so when?
Thanks
BobVal