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).

貢獻者指南