[PATCH] D20933: Preallocate ExplodedNode hash table

Anna Zaks via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 15:59:46 PDT 2016


zaks.anna added a comment.

Does FoldingSet already have reserve? (I do not see it.)

My understanding is that you propose to allocate all the nodes that would be required to store the maximum number of nodes we allow, lowering the malloc traffic. The current implementation just doubles the size. Is this correct?

Maybe we should just set a higher initial size, instead of going all the way to the max?


http://reviews.llvm.org/D20933





More information about the cfe-commits mailing list