Hi all,

there are now pull requests available to add support to ccache (
https://ccache.dev/ ) for Emscripten. Ccache speeds up recompilation
of identical code files.

If you are interested in giving it a try ahead of landing, see more
information at
 - Emsdk PR: https://github.com/emscripten-core/emsdk/pull/711
 - Emscripten PR: https://github.com/juj/ccache/tree/emscripten
 - CCache Emscripten fork: https://github.com/juj/ccache/tree/emscripten

As a test case, recompiling Gabriel Cuvillier's Doom 3 Wasm port at
https://github.com/gabrielcuvillier/d3wasm to wasm, which consists of
267 source files:

- cold compile without ccache support enabled: 13.84s
- first time cold compile: 18.65s
- second time hot compile (full rebuild of all files in cache): 2.66s

So rebuilds of identical files speed up quite well, whereas cold
builds do get a bit slower, a tradeoff.

I would be curious to hear user impressions if people run into any bugs.

Cheers,
Jukka

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CA%2B6sJ-0MktYoz8a%2BXCRMYAXQdWAskBsWjuwomk4dRTxt%2BEX4aQ%40mail.gmail.com.

Reply via email to