[PATCH] Refactor VariantMatcher::MatcherOps to reduce the amount of generated code.

Reid Kleckner rnk at google.com
Wed Sep 3 10:15:48 PDT 2014


>>! In D5124#20, @klimek wrote:
> +chandler
> 
> 19k sounds like so little; why does it take so much time =[
> Can we fix the compiler to make this fast then?

We can make it fast in release mode by optimizing away lots of cruft, but probably not in debug mode. You've asked the compiler to make many thousands of functions, and that's fundamentally really expensive.

http://reviews.llvm.org/D5124






More information about the cfe-commits mailing list