diff options
| author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-06-14 13:37:24 +0200 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2020-09-01 15:54:08 +0200 |
| commit | cd3b8eca7d70913066434e54908abec4185abb98 (patch) | |
| tree | 8dbe40990e8df1241245e772f770983eec528799 /libcxx/benchmarks/function.bench.cpp | |
| parent | a7ab0077c4026e4b191d641977f46ddd02ea34ca (diff) | |
[clang] Cache preamble-related data
In case two translation units are created for the
same file - reuse preamble data to reduce memory and
save time on extra preamble generation.
Qt Creator creates two translation units for each file.
With this patch they try to share the same preamble which
in most of the cases prevents double generation by checking
the bounds of the existing preamble and reusing it if it's valid.
In the worst case preamble is still generated twice and we get
slightly worse performance than before but I never saw such case.
Cherry picked from commit
clang.git/403df55e933f947ad52c9a66759a06b30ab89738.
Reviewed-by; Marco Bubke <marco.bubke@qt.io>
Change-Id: Ia52fe2a0428cf0d13f210b2e85ee7b44cde9ad1c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'libcxx/benchmarks/function.bench.cpp')
0 files changed, 0 insertions, 0 deletions
