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