HomePhabricator

[ASTMatcher] Fix a performance regression: memorize the child match.

Authored by hokein on Jun 30 2020, 6:42 AM.

Description

[ASTMatcher] Fix a performance regression: memorize the child match.

D80025 introduced a performance regression: in some cases, it makes
clang-tidy readability-container-size-empty ~80x slower (running on an internal
huge TU, before that patch 12s vs after 950s).

after this patch, we go back to 12s.

Differential Revision: https://reviews.llvm.org/D82771

Details

Committed
hokeinJun 30 2020, 6:43 AM
Differential Revision
D82771: [ASTMatcher] Fix a performance regression: memorize the child match.
Parents
rG35674976f09e: [lldb/Test] Introduce "assertSuccess"
Branches
Unknown
Tags
Unknown