[lld] r198102 - [PECOFF] Use std::set to store export symbol descriptors.

Chandler Carruth chandlerc at google.com
Sat Dec 28 00:35:55 PST 2013


On Sat, Dec 28, 2013 at 3:11 AM, Rui Ueyama <ruiu at google.com> wrote:

> [PECOFF] Use std::set to store export symbol descriptors.
>
> Each export symbol descriptor has unique name attribute, so std::set is
> better container than std::vector for it.
>

Really? Better than a sorted and uniqued vector? I find this very
surprising. std::set is almost useless slow.

Maybe you could use some of the more tuned LLVM datastructures?
http://llvm.org/docs/ProgrammersManual.html#ds-set
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131228/6d9cb443/attachment.html>


More information about the llvm-commits mailing list