emscripten-core/emscripten

Compiler information extraction significantly slower compared to vanilla Clang

Open

#13.004 geöffnet am 10. Dez. 2020

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (3.519 Forks)batch import
help wantedwontfix

Repository-Metriken

Stars
 (27.361 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 19T 10h) (147 gemergte PRs in 30 T)

Beschreibung

Extracting some basic information (version, target, header search paths) from emcc is significantly slower compared to vanilla Clang. Compare:

$ time { clang++ --version; clang++ -dumpmachine; clang++ -v -x c++ -E - </dev/null; }
real    0m0.029s

$ time { emcc --version; emcc -dumpmachine; emcc -v -x c++ -E - </dev/null; }
real    0m0.266s

Some build systems (e.g., build2) extract this information on the fly (in order to implement high-fidelity change detection) and the slowdown is noticeable. I wonder if anything can done about this?

Contributor Guide