HomePhabricator

[clangd] Optimize "don't include me" check.

Authored by sammccall on Apr 25 2019, 10:47 AM.

Description

[clangd] Optimize "don't include me" check.

Summary:
llvm::Regex is really slow, and regex evaluation during preamble indexing was
showing up as 25% on a profile of clangd in a codebase with large preambles.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 359214

Details

Committed
sammccallApr 25 2019, 10:47 AM
Differential Revision
D61120: [clangd] Optimize "don't include me" check.
Parents
rG8b36610bfa50: [NFC][Sanitizer] Extract GetFuncAddr from GetRealFunctionAddress
Branches
Unknown
Tags
Unknown