[all-commits] [llvm/llvm-project] 0b23d9: Reduce memory usage in AST parent map generation b...
higher-performance via All-commits
all-commits at lists.llvm.org
Mon Mar 17 14:48:15 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 0b23d98dceaa9f965bfa196a6adfa38b1b8bda8e
https://github.com/llvm/llvm-project/commit/0b23d98dceaa9f965bfa196a6adfa38b1b8bda8e
Author: higher-performance <higher.performance.github at gmail.com>
Date: 2025-03-17 (Mon, 17 Mar 2025)
Changed paths:
M clang/lib/AST/ParentMapContext.cpp
Log Message:
-----------
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.
(cherry picked from commit 8c7f0eaa6ee3f84e3d8260535cced234bed4fa28)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list