3 ms·
Looks like those sizes could be improved significantly, as the builds include names etc. I would suggest linking with emcc -O3 (and maybe even adding --closu
by azakai 10mo ago
Looks like those sizes could be improved significantly, as the builds include names etc. I would suggest linking with
emcc -O3
(and maybe even adding --closure 1 )
edit: actually the QuickJS playground looks already optimized - just the MicroQuickJS one could be improved.
- simonw 10mo agoNice. Got it down from 229KB to 148KB! Thanks for the tips. https://github.com/simonw/research/pull/5 https://github.com/simonw/research/pull/5 Thats now live on https://tools.simonwillison.net/microquickjs https://tools.simonwillison.net/microquickjs
- julenx 10mo agoThanks for sharing! The link to the PR looks like a wrong paste. I found https://github.com/simonw/tools/pull/181 https://github.com/simonw/tools/pull/181 which seems to be what was intended to be shared instead.