emscripten-core / emscripten-core/emscripten

NODE_CODE_CACHING with dynamic libraries

Open
#12,752 7 comments 0 reactions 0 assignees View on GitHub
help wanted wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.