List of elements with unknown type, is it bad?

Where you will have performance problems is if later you want evaluate functions which take those elements of the array as parameters, and the functions will have to be dynamically dispatched at run time for every element of the array. The best alternative is to try to reorganize the data to avoid mixed-type arrays, but detailed discussions on that can be found in these threads:

(look particularly at Skoffer’s answers and the macro he provides in the third thread).

2 Likes