[all-commits] [llvm/llvm-project] f60cc4: [clang][modules] NFC: Only sort interesting identi...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Mon May 15 13:29:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f60cc473b82b16edc448199c84e612c1e5c3014c
      https://github.com/llvm/llvm-project/commit/f60cc473b82b16edc448199c84e612c1e5c3014c
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  -----------
  [clang][modules] NFC: Only sort interesting identifiers

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.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D150494




More information about the All-commits mailing list