Closed JaXt0r closed 9 months ago
This is something I am not quite sure about. The difference comes from the way the data is exposed from C so it basically exposes an implementation detail:
Do you have a preference either way?
I checked a few blogs. As Arrays are fixed in size, they should never be resized. As your data is fixed, this is ok. From getting an element via index, Arrays seems slightly faster. e.g.
Let's stick with List<> as the overhead is neglectable.
But thinking about it... Why not using the performance boost. Even if it's small. As the arrays are always fixed in size from ZenKit.
Hopefully the change to Arrays is done in less than 1h for you?
Any suggestions how you want to progress? Is List the way to go for you based on smaller performance possibilities?
I've switched all raw arrays to Lists for now. Maybe we want to change it later but that's the easiest currently :)
Works. Thanks.
ZenKitCS moved away from Arrays[] towards List. Is it intended, that WayNet.WayEdges are an array instead of List?
I'd suggest to uniform it as WayPoints are also of type List.