Separate the matchers by type and statically dispatch to the right list.
For any node type that we support, it reduces the number of matchers we
run it through.
For node types we do not support, it makes match() a noop.
This change improves our clang-tidy related benchmark by ~30%.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I assume this makes something faster? Do you have some numbers?
lib/ASTMatchers/ASTMatchFinder.cpp | ||
---|---|---|
439 | FIXME: |
FIXME: