mikeoliphant / neural-amp-modeler-lv2

Neural Amp Modeler LV2 plugin implementation
GNU General Public License v3.0
227 stars 28 forks source link

Optimize audio level loop code #47

Closed falkTX closed 1 year ago

falkTX commented 1 year ago

This is a quite minor optimization by putting variables used inside a loop in the stack. So instead of modifying a class variable that is on the heap, we iterate over stack variables and only at the end we assign that to the class variable.

mikeoliphant commented 1 year ago

I can't imagine this has much impact, but it doesn't hurt...