In 9c254184 ASTWriter stopped writing identifiers that are not interesting. Taking it a bit further, we don't need to sort the whole identifier table, just the interesting identifiers. This reduces the size of sorted vector from ~10k (including lots of builtins) to 2 (__VA_ARGS__ and __VA_OPT__) in a typical Xcode project, improving clang-scan-deps performance.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Would it make sense to reduce the size of the SmallVector too?