So you're saying that it gets worse the larger the offset in the ArrayBuffer?
I think it's due to the implementation of slice on Espruino. It's expecting that it'll run on a normal sparse array, which is a Linked List.
Because of that it's just iterating to get to the correct start index - even though with an ArrayBuffer it could just go straight there in most cases. I've just filed an issue for this.
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.
So you're saying that it gets worse the larger the offset in the ArrayBuffer?
I think it's due to the implementation of
slice
on Espruino. It's expecting that it'll run on a normal sparse array, which is a Linked List.Because of that it's just iterating to get to the correct start index - even though with an ArrayBuffer it could just go straight there in most cases. I've just filed an issue for this.