llvm-project/clang-tools-extra/clangd/test/Inputs
Sam McCall 735ab46cb4 [clangd] Don't create as much garbage while building Dex index.
Summary:
The Token objects are relatively expensive and we were spending a lot of
CPU creating them for each trigram emitted. Instead, use a tiny trigram
structure until we're ready to finalize the index.

This improves the new BuildDex benchmark by 20%. This code is hot and on
the critical path in clangd: it runs after a new preamble is built.

Reviewers: kbobyrev

Subscribers: ilya-biryukov, MaskRay, jkorous, mgrang, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79918
2020-05-14 13:35:44 +02:00
..
background-index [clangd] Show background index status using LSP 3.15 work-done progress notifications 2020-01-24 12:21:08 +01:00
path-mappings/server [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01:00
BenchmarkHeader.h
BenchmarkSource.cpp
requests.json [clangd] Don't create as much garbage while building Dex index. 2020-05-14 13:35:44 +02:00
symbols.test.yaml Make symbols.test pass on Windows. 2019-10-14 01:19:53 +00:00