alexbdv added a comment.

@dexonsmith I did a benchmark with the worst case example I can come up with - 
1000 regular functions and 1000 blocks : 
https://paste.ofcode.org/CFU6b46nuAA6ymxUEpkzka
I didn't manage to measure any performance decrease (the performance decrease 
was within the noise of repeated runs) - so seems the hashing is insignificant 
compile-time-wise even in worst case scenario (where most of the code is in 
function blocks).
And here is the actual text that is being hashed - the textual representation 
of the AST, not the IR: https://paste.ofcode.org/bfMzhbvHz9HRT7mVMe48Mx


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74813



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

Reply via email to