[all-commits] [llvm/llvm-project] df61bb: [SourceManager] Improve getFileIDLoaded.

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Oct 6 01:15:35 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df61bb271af9ad6e61c1cd470ea6f4255b2182c7
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M clang/lib/Basic/SourceManager.cpp

  Log Message:
  [SourceManager] Improve getFileIDLoaded.

Similar to getFileIDLocal patch, but for the version for load module.

Test with clangd (building AST with preamble), FileID scans in binary
search is reduced:

SemaExpr.cpp: 142K -> 137K (-3%)
FindTarget.cpp: 368K -> 343K (-6%)

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

More information about the All-commits mailing list