diff options
author | Googler <noreply@google.com> | 2018-07-10 01:59:11 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-10 02:00:31 -0700 |
commit | 3520d0df30bea0746579c796fe3ca462a809473d (patch) | |
tree | 60076078abd1b823bb7ed695db1addec40c81312 /third_party/protobuf/3.4.0/objectivec/Tests/unittest_deprecated_file.proto | |
parent | eb3a183b900889e1d1d8d5edc13e1b7aa26dcab6 (diff) |
Restructure the NestedSet usage in CcCompilationContext. Goals:
- Don't use NestedSets of NestedSets. Not sure whether this is a performance
improvement or has serialization benefits, but it does make understanding the
structure a lot easier.
- Use the same large NestedSet for all header information (whether or not they
are modular and what pregrepped headers might exist). This speeds up the
include scanner calls getLegalGeneratedScannerFileMap and getModularHeaders
because they now iterate over just a single NestedSet and the second
evaluation of a NestedSet is much cheaper. In a subsequent change, we can
likely fold all three iterations over this NestedSet into one (in
getLegalGeneratedScannerFileMap, getModularHeaders and getUsedModules).
Measurements show a small reduction in heap usage.
RELNOTES: None.
PiperOrigin-RevId: 203909308
Diffstat (limited to 'third_party/protobuf/3.4.0/objectivec/Tests/unittest_deprecated_file.proto')
0 files changed, 0 insertions, 0 deletions