Files
clang-p2996/clang/lib/AST/ParentMapContext.cpp
higher-performance 8c7f0eaa6e Reduce memory usage in AST parent map generation by lazily checking if nodes have been seen (#129934)
This mitigates a regression introduced in #87824.

The mitigation here is to store pointers the deduplicated AST nodes, rather than copies of the nodes themselves. This allows a pointer-optimized set to be used and saves a lot of memory because `clang::DynTypedNode` is ~5 times larger than a pointer.

Fixes #129808.
2025-03-13 16:02:39 -04:00

17 KiB