r217274 - Separate the matchers by type and statically dispatch to the right list.

Alexander Kornienko alexfh at google.com
Sat Sep 6 17:03:01 PDT 2014


On Fri, Sep 5, 2014 at 10:15 PM, Samuel Benzaquen <sbenza at google.com> wrote:

> Author: sbenza
> Date: Fri Sep  5 15:15:31 2014
> New Revision: 217274
>
> URL: http://llvm.org/viewvc/llvm-project?rev=217274&view=rev
> Log:
> Separate the matchers by type and statically dispatch to the right list.
>
> Summary:
> 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%.
>

Nice!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140907/2387aece/attachment.html>


More information about the cfe-commits mailing list