Hi,
attached is a patch which shows a bad performance problem of data structure arrays. If those arrays are larger and if they are redrawn in a subpatch, while their surrounding subpatch is visible, the redrawing is very slow. If however the redrawing happens when the subpatch is closed, the redraw is very fast even then, when I immediatly open the subpatch again.
In the attachement, both kinds of behaviour can be switched with a little radio button marked "hide/show". An array with 800 random values is written to [pd data] when the red bang is pressed. (You can set the size to be smaller with the "width" number.
Now, as the drawing can be done very fast in invisibility, I wonder, if there is some optimization missing for the visible case? And I wonder, if this optimization shouldn't be rather easy to do? (But this is just an uneducated guess.)
Ciao