2 ms·
JS perf on MCUs is bad. V8 relies on way too many x86 specific assumptions. This is why JS sucks so bad on anything, but top tier ARM socs. On an MCU things wil
by baybal2 7y ago
JS perf on MCUs is bad. V8 relies on way too many x86 specific assumptions. This is why JS sucks so bad on anything, but top tier ARM socs. On an MCU things will be even worse.
For example, it is impossible to control how V8 converts its internal integers to floats and how. One Math.* method may output a Number which is a float behind the scene, another one int, and another one int double.
GC on MCU is completely unpredictable too. If it fires when you need to poll latency sensitive peripheral, things hang.