[PATCH] D27155: Merge strings using concurrent hash map (3rd try!)

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 20:50:37 PST 2016


> +    // SectionPieces having the same string contents are chained
> +    // using pointers. This pointer points to the first node.
> +    std::atomic<SectionPiece *> Piece;

This is here to avoid having to look it up in the hash table in the end
I assume. Is it actually worth it given that the piece already has the
hash and the lookup can be parallel?

Cheers,
Rafael


More information about the llvm-commits mailing list