vsapsai added a comment.

In D109632#3000709 <https://reviews.llvm.org/D109632#3000709>, @rmaz wrote:

> The speedup is coming from reducing the number of times 
> `Sema::addMethodToGlobalList` is called when looking up methods loaded from 
> modules. From what I can see each serialized module will contain an 
> ObjCMethodList with all the methods from all visible modules at the point of 
> serialization.

Thanks for the explanation! I'm still curious to reproduce the problem locally 
and have created a test case generator 
https://gist.github.com/vsapsai/f9d3603dde95eebd23248da4d7b4f5ec It creates a 
chain of .m -> Synthesized9 -> Synthesized8 -> Synthesized7 ->... Does it 
represent the structure of the code you are dealing with?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109632/new/

https://reviews.llvm.org/D109632

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to