Hi all,
in debugging some external code for Pd I happened to think about a thing I don't understand: each time the "perform" routine is called, the variables that are initialized are each time freshly initiated (they do not retain values from the past round) but they are always instantiated at the same memory address: is this for chance or is it by design?
How much does it cost in terms of overhead to instantiate new variable at each dsp cycle? Here for instance: at every cycle some vars and arrays are instantiated:
void foo_tilde_perform(t_int *w, const int offset)
{
t_foo_tilde *x = (t_foo_tilde*) (w[1]);
int n = (int)(w[2]);
t_float *out[DEFAULT_AUDIO_CHANNELS];
const int channels;
int i = 0;
int j = 0;
...