emscripten-core/emscripten

Compiler information extraction significantly slower compared to vanilla Clang

オープン

#13,004 opened on 2020/12/10

 (8 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (3,519 件のフォーク)batch import
help wantedwontfix

Repository metrics

Stars
 (27,361 個のスター)
PR merge metrics
 (平均マージ 19d 10h) (30d で 147 merged PRs)

説明

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?

コントリビューターガイド