Re: [comparison] transratio vs. expr / speed test

Forums > MaxMSP > [comparison] transratio vs. expr / speed test
Dec 02 2012 | 1:22 pm

IMHO, comparing efficiency on something like that is not worth the trouble. The difference of a few micro seconds won’t matter until you’re doing that at very fast rate (which you’re not since you’re doing this operation on messages). I always advice my student to focus on readability vs efficiency.

Also if you want to compare the efficiency, you might want to do the operation more than once, otherwise you measure mainly the rest of the patcher than the specific object. Using uzi 10000 gives a better idea.
#1 the loop is done in JavaScript for the example (the more you stay in JS, the better).
#2 js is faster, but runs in low priority that’s why you need to wait for the process to be done, in order to trigger the next thing (see the extra outlet)


Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required