[all-commits] [llvm/llvm-project] 8c7f0e: Reduce memory usage in AST parent map generation b...
higher-performance via All-commits
all-commits at lists.llvm.org
Thu Mar 13 13:03:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8c7f0eaa6ee3f84e3d8260535cced234bed4fa28
https://github.com/llvm/llvm-project/commit/8c7f0eaa6ee3f84e3d8260535cced234bed4fa28
Author: higher-performance <higher.performance.github at gmail.com>
Date: 2025-03-13 (Thu, 13 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.
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