emscripten-core/emscripten

NODE_CODE_CACHING with dynamic libraries

开放

#12,752 创建于 2020年11月10日

 (7 条评论) (0 个反应) (0 位负责人)C++ (3,519 个派生)batch import
help wantedwontfix

仓库指标

星标
 (27,361 个星标)
PR 合并指标
 (平均合并 19天 10小时) (30 天内合并 147 个 PR)

描述

Hi there,

Here is a feature request:

I am working on a NodeJS application, which starts up a relatively large Emscripten / WASM project, which uses several dynamically linked libraries (via the dynamicLibraries entry in the Module object). Currently, startup of the application takes several minutes. To speed things up, I imagine it would be very helpful to use NODE_CODE_CACHING=1. However, this only seems to work with the MAIN_MODULE (I get a *.cache.xxxxx file only for that type of module) and not with any SIDE_MODULE (there are no *.cache.xxxxx files).

贡献者指南