On Tue, Aug 29, 2017 at 10:04 AM, oliver <oliver@klingt.org> wrote:
IOhannes m zmölnig wrote:
On 08/29/2017 01:28 AM, Hrvoje Radnic via Pd-list wrote:
Hi,I usually do this by multiplying the value by -1 and offset it by the range of the first value

which is about 100% faster than the expr equivalent.

hi, IOhannes !

thanks for that info !

i often read on this list that [expr] is slower/computational more expensive etc. than using simple vanilla objects. why is that so ?

in theory, it would make patching more easy as it reduces the number of objects and cords. what are situations where [expr] makes more sense to use ?


expr is slower since the expressions are interpreted, but in practice it probably doesn't matter unless expr is called extremely often. Another alternative is k_cext which compiles the expressions to C, probably making it the fastest alternative: https://github.com/kmatheussen/k_cext