4 ms·
Another thing to consider (and probably part of the size difference) is QuickJS carries with it about 5 years newer JS standards support than Duktape.
by zamadatix 7y ago
Another thing to consider (and probably part of the size difference) is QuickJS carries with it about 5 years newer JS standards support than Duktape.
- hajile 7y agoI suspect these two things are related. ES2015 more than doubled the size of the spec and each spec since then has continued adding loads of things that take precious kb to implement. That said, it seems like there are serious code savings to be had with some things like destructuring, template strings, and arrow functions. Generators are probably complex to add, but also don't transpile well (that is, debugging the resulting code is a horrible experience).