Just making sure I understand - i’m still a newb:
Native/builtin arrays :
var a = new float[1024];
+is very fast
-fixed size and type
Javascript arrays:
var a = new Array(1024);
-more overhead
- takes any type
- grows and has methods documented in ScriptReference/Array.html
Can be quickly converted to native using ToBuiltin() method!
I gather this is a builtin array with some helper methods added?
ArrayList:
var a = new ArrayList(1024);
–even more overhead
- additional methods see System.Collections Namespace | Microsoft Learn
So for example, if I need a Contains() method and it’s NOT a performance critical script then I go with ArrayList, right?