HomePhabricator

[clangd] Improve clangd-indexer performance

Authored by ArcsinX on Nov 11 2020, 3:29 AM.

Description

[clangd] Improve clangd-indexer performance

This is a try to improve clangd-indexer tool performance:

  • avoid processing already processed files.
  • use different mutexes for different entities (e.g. do not block insertion of references while symbols are inserted)

Results for LLVM project indexing:

  • before: ~30 minutes
  • after: ~10 minutes

Reviewed By: kadircet

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

Details

Committed
ArcsinXNov 11 2020, 3:38 AM
Reviewer
kadircet
Differential Revision
D91051: [clangd] Improve clangd-indexer performance
Parents
rGeae2d6357110: Revert "[flang] Fix CheckSpecificationExpr handling of associated names"
Branches
Unknown
Tags
Unknown