3 ms·
A while back I used eval in a matrix multiplication routine, to make it accept matrices of arbitrary size and generate code to multiply them: https://github.co
by rogual 8y ago
A while back I used eval in a matrix multiplication routine, to make it accept matrices of arbitrary size and generate code to multiply them:
https://github.com/rogual/mxd/blob/master/Matrix.js#L50 https://github.com/rogual/mxd/blob/master/Matrix.js#L50
It benchmarked pretty well back when I wrote it, though I haven't checked against current JS engines to see if it's still a performance win.