aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-05-11 15:42:31 +0200
committerSam McCall <sam.mccall@gmail.com>2022-05-19 09:40:44 +0200
commit4df795bff75289941508d07bbe9105b93b098105 (patch)
treee3fa4b93fe774841d9aaad76345866121b1a37a6 /lldb/source/Commands/CommandObjectMemory.cpp
parentbbc6834e2635a60230cd410d3f32b7c6d11ad208 (diff)
downloadllvm-4df795bff75289941508d07bbe9105b93b098105.zip
llvm-4df795bff75289941508d07bbe9105b93b098105.tar.gz
llvm-4df795bff75289941508d07bbe9105b93b098105.tar.bz2
[Serialization] Delta-encode consecutive SourceLocations in TypeLoc
Much of the size of PCH/PCM files comes from stored SourceLocations. These are encoded using (almost) their raw value, VBR-encoded. Absolute SourceLocations can be relatively large numbers, so this commonly takes 20-30 bits per location. We can reduce this by exploiting redundancy: many "nearby" SourceLocations are stored differing only slightly and can be delta-encoded. Randam-access loading of AST nodes constrains how long these sequences can be, but we can do it at least within a node that always gets deserialized as an atomic unit. TypeLoc is implemented in this patch as it's a relatively small change that shows most of the API. This saves ~3.5% of PCH size, I have local changes applying this technique further that save another 3%, I think it's possible to get to 10% total. Differential Revision: https://reviews.llvm.org/D125403
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
0 files changed, 0 insertions, 0 deletions