llvm-project/clang/lib/Index
Sam McCall e83ae11ccc [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
2017-12-23 19:31:24 +00:00
..
CMakeLists.txt [index] CMake: add missing reference to clangSerialization library. 2017-01-30 06:48:27 +00:00
CodegenNameGenerator.cpp [index] Generate class & metaclass manglings for objc 2017-09-22 16:58:57 +00:00
CommentToXML.cpp Print enum constant values using the original source formatting 2017-08-17 13:41:55 +00:00
IndexBody.cpp [index] __builtin_offset's field reference is located at the end location 2017-11-07 18:25:36 +00:00
IndexDecl.cpp Refactor overridden methods iteration to avoid double lookups. 2017-12-17 23:52:45 +00:00
IndexSymbol.cpp [Index] Reduce size of SymbolInfo struct. 2017-12-23 19:31:24 +00:00
IndexTypeSourceInfo.cpp [index] Update indexing to handle CXXDeductionGuideDecls properly 2017-08-15 17:20:37 +00:00
IndexingAction.cpp [Index] Add setPreprocessor member to IndexDataConsumer. 2017-12-07 11:04:24 +00:00
IndexingContext.cpp [index] Update indexing to handle CXXDeductionGuideDecls properly 2017-08-15 17:20:37 +00:00
IndexingContext.h [index] The relation between the declarations in template specializations 2017-04-24 14:04:58 +00:00
SimpleFormatContext.h [VFS] Port SimpleFormatContext to InMemoryFileSystem. 2015-10-06 10:23:34 +00:00
USRGeneration.cpp R13575: Fix USR mangling for function pointer types 2017-10-10 00:35:16 +00:00