I’m interested in speed comparison between widget opcodes and “normal” global values (gk).
Is there any speed penalty when using cabbageGetValue
or other widget opcodes?
I guess widget values are global but is there any difference in their access speed compared to gk values?
Is there any speed difference if a widget value is read within an always on instrument into a global gk variable, which is used across multiple instruments/instances, e.g. midi triggered notes, or is it faster to access the widget value directly from within the instruments/instances? In the later case there will generally be more widget “reading”, so it seems that if there is any overhead in using widget opcodes compared to accessing “normal” global variables, it might be better to copy widget values into gk values ones? What approach would you recommend?