In this case the array knows its size and sinesum always requests a size, so those could be compared before running an actual resize. On Oct 8, 2015 3:22 AM, "IOhannes m zmoelnig" zmoelnig@iem.at wrote:
On 2015-10-08 02:01, Matt Barber wrote:
I can't think of a good solution just yet, aside from rewriting the
g_array
functions to check to see if a resize is actually needed.
how would you do that? Pd does not provide an API to release an array from being used in DSP. so once an object (or somebody else) claims to use the object, you have no way to find out whether someone is actually using it (apart from vivisecting each object or using a plasma ball).
a good start would be to add a garray_unusedindsp() function... ah no i've already written that [1].
fgmasdr IOhannes
[1] http://lists.puredata.info/pipermail/pd-list/2015-09/111520.html
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list