[PATCH] D64312: [clangd] Simpler/more compact in-memory representation of RefSlab/Builder

Sam McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 01:29:48 PDT 2019


sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added subscribers: llvm-commits, kadircet, arphaman, mgrang, jkorous, MaskRay, ilya-biryukov.
Herald added a project: LLVM.

This reduces the total CPU time for readRIFF by >50%
It also reduces the memory size of the index by 3%.

For context, before this change: preparing the background index is around:

- 15% computing SHA1 of files to check index validity
- 30% readRIFF
- 50% building serving structures afterwards


Repository:
  rL LLVM

https://reviews.llvm.org/D64312

Files:
  clang-tools-extra/clangd/index/Ref.cpp
  clang-tools-extra/clangd/index/Ref.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64312.208328.patch
Type: text/x-patch
Size: 7696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190708/1038f8bc/attachment.bin>


More information about the llvm-commits mailing list