[PATCH] [clang] Optimized ASTNodeKind::isBaseOf

Alexander Kornienko alexfh at google.com
Thu Oct 2 10:59:17 PDT 2014


>>! In D5577#18, @sbenza wrote:
> It is still bad that it allocates more than 300k of heap, and then it doesn't even use most of it.

It's ~90k of heap (after changing unsigned to unsigned char). But if you'll manage to get a decent implementation of (4), it would be nice. I'll leave this patch here in case there is no better solution.

> I have a prototype of (4) at http://reviews.llvm.org/differential/diff/14336/
> Haven't benchmarked it yet.

http://reviews.llvm.org/D5577






More information about the cfe-commits mailing list