weixin_39982537 2020-11-29 13:41
浏览 0

Decrease code download size

The download size for a reasonably-capable JIT-enabled interpreter currently clocks in at just over 4M of gzipped assets. We'll need to do better. Let's use this bug to collect ideas and comment on progress for the overall effort.

Currently active ideas: - Use the new "emterpreter" mode of emscripten to trade of size for execution speed (#37) - Teach PyPy how to load its builtin modules on demand, rather than having them all compiled together with the core interpreter - Fix several instances of badly-structured code output from emscripten, where its relooper doesn't like the code structures generated by PyPy

该提问来源于开源项目:pypyjs/pypyjs

  • 写回答

7条回答 默认 最新

  • weixin_39982537 2020-11-29 13:41
    关注

    Using closure compiler on the non-asmjs parts of the code will be useful here (see #23) but probably won't give significant savings since most of the size is asmjs.

    评论

报告相同问题?