It's a real shame it's not easier to iterate over the array 3 at a time! You could just use SPI.send to read all the data at once, and could convert it with the assembler.
You might get some speed improvement by doing:
var zzz = new Uint8Array([0,0,0]);
sData = sData.map(function() {return ILIcalc.apply(0,spi.send(zzz))});
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's a real shame it's not easier to iterate over the array 3 at a time! You could just use SPI.send to read all the data at once, and could convert it with the assembler.
You might get some speed improvement by doing: