I have a (probably dumb) question regarding the performances of jit.gen as compared to jit.expr: each time I translate a code from expr to gen, I notice (on my computer at least) a significant degradation of the performances.
As an example, I started from the patch "bench.compare.expr.maxpat" provided with the distribution, which indeed shows (using cpuclock) a significant advantage for jit.gen. From this patch, I made two new ones, with a way bigger matrix (1500x1500):
. The patch with jit.expr:
The patch with jit.expr takes approx 190% CPU on my machine (Macbook pro i7 4x2.3 GHz, OS 10.8.4, Max 6.1.3), whereas the patch with jit.gen takes more than 450%.
Did I miss something? I'm sure I did, but what?