How many items can a list contain?

Jan 29, 2014 at 12:02pm

How many items can a list contain?

Just to be sure so I do not run into troubles later on: What is the maximum number of items a list can contain?

#279472
Jan 29, 2014 at 1:52pm

The default limit for objects is 256 items, but the zl object (at least) can do up to 32767. Look at the “list length” tab in the zl help file. Also, other data types (jitter matrices) can hold more items and third party objects don’t necessarily have these limits.

#279481
Jan 29, 2014 at 11:50pm

I think it depends on the object. As mentioned, zl objects default to 256 but have an actual limit of 32,767.

However vexpr can only handle lists up to 4096 elements

I also seem to recall hitting a limit in the length of an expr argument (characters in the formula) In think 256? Hopefully someone can confirm that.

#279527
Jan 30, 2014 at 3:09am

Using zl len I get 256 as the length. However, the mapping is performed and the output message box seems to contain all values. What would be an alternative external to use a bigger list? I think the maximum number of items I will use would be 10000 but I think I can limit it to 4096 if there would not be any alternative. In either case, I should be able to handle more than 256 values at a time.

#279547
Jan 30, 2014 at 6:26am

With [zl.len @zlmaxsize 10000] you will be able to get the length up to 10000 items.

#279558
Feb 20, 2014 at 3:22am

This patch seems to do the trick but I am still confused about the two arguments. What is the difference between list length and list size?

<code>

– Pasted Max Patch, click to expand. –

</code>

#281639
Apr 10, 2014 at 10:03am

I too have encountered a limit number of arguments for the expr object.

Is there a way to change that maximum number of arguments ?

I have attached the problematic expression I would like to evaluate.

Thanks for your help !

#286295
Apr 10, 2014 at 2:30pm

i can’t seem to open your patcher here !

#286338
Apr 10, 2014 at 2:36pm

@thinksamuel (even if late) : the zlmaxsize is the maximum size of a list that can be processed. The length given by zl length is the actual size of the list. Therefore, zlmaxsize will always be superior or equal to a list length.

#286339
Apr 11, 2014 at 7:36am

@vichug: sorry about the patch: here it is inline:

– Pasted Max Patch, click to expand. –
#286410

You must be logged in to reply to this topic.