Maximum Array length?

Dan Nigrin's icon

Does anyone know what the maximum number of elements in an Array is?

Martin Olavarria's icon

Hi Dan.

In theory, as a data structure should be arbitrary, and only limited by your memory. Is there some use case where you have found a limitation?

Dan Nigrin's icon

Thanks Martin - I haven’t encountered a problem yet, but planning my approach for a new application, and wanted to be sure that I wouldn’t have any constraints. I could potentially have up to 100,000 elements.

Martin Olavarria's icon

It would be great to know a little more about the low level implementation of some data structures in Max, in general, since there are so many options.

Depending on your application you could look up things like the [capture] object, dictionaries and [coll], depending if you want to write to disk and your usage of the data. Or just test the constraints of the arrays ahead of implementing. Good luck!


Roman Thilenius's icon

many older max objects do still have size/amount/lenght limitations, array should have not.

if you only think about its feature to copy the content of audio buffers into an array and back. :)

Martin Olavarria's icon

Good to know! Sounds like arrays are a good option.