diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-12-23 19:31:24 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-12-23 19:31:24 +0000 |
commit | e83ae11ccc928ae29c1987655459d17bca000f26 (patch) | |
tree | e22bf5b63c061251b091d9f249c0870a3c7cab58 /clang-tools-extra/unittests/clangd/IndexTests.cpp | |
parent | d9548c350f8f1c88d8c203a1ca2acbdfefc18cb9 (diff) | |
download | bcm5719-llvm-e83ae11ccc928ae29c1987655459d17bca000f26.tar.gz bcm5719-llvm-e83ae11ccc928ae29c1987655459d17bca000f26.zip |
[Index] Reduce size of SymbolInfo struct.
Summary:
This is currently 16 bytes, the patch reduces it to 4.
(Building with clang on linux x84, I guess others are similar)
The only subfield that might need a bigger type is SymbolPropertySet,
I've moved it to the end of the struct so if it grows, SymbolInfo will
only be 8 bytes.
With a full index of namespace-scope symbols from the LLVM project (200k)
loaded into clangd, this saves ~2MB of RAM.
Reviewers: akyrtzi
Subscribers: ilya-biryukov, cfe-commits
Differential Revision: https://reviews.llvm.org/D41514
llvm-svn: 321411
Diffstat (limited to 'clang-tools-extra/unittests/clangd/IndexTests.cpp')
0 files changed, 0 insertions, 0 deletions