diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-11 23:03:43 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-19 15:19:00 -0400 |
commit | ab20eb5bbc21ae855bcd211131132d2778602bcf (patch) | |
tree | 3b58fbc9c1e950b04f919f6edf77e11e362cba68 /mesonbuild/compilers/cpp.py | |
parent | cc5ef6478ffe871eda6ad90f21d8e9d05613101d (diff) | |
download | meson-ab20eb5bbc21ae855bcd211131132d2778602bcf.zip meson-ab20eb5bbc21ae855bcd211131132d2778602bcf.tar.gz meson-ab20eb5bbc21ae855bcd211131132d2778602bcf.tar.bz2 |
compilers: avoid importing compilers upfront for detect
We no longer need these upfront at all, since we now import the ones we
need for the language we are detecting, at the time of actual detection.
This avoids importing 28 files, consisting of just under 9,000 lines of
code, at interpreter startup. Now, it is only imported depending on
which languages are invoked by add_languages, which may not even be
anything. And even if we do end up importing a fair chunk of it for
C/C++ projects, spreading the import cost around the interpreter runtime
helps responsiveness.
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
0 files changed, 0 insertions, 0 deletions