<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 28, 2013 at 5:35 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><br><div class="gmail_quote">On Sat, Dec 28, 2013 at 3:11 AM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">[PECOFF] Use std::set to store export symbol descriptors.<br>




<br>
Each export symbol descriptor has unique name attribute, so std::set is<br>
better container than std::vector for it.</div></blockquote></div><br></div>Really? Better than a sorted and uniqued vector? I find this very surprising. std::set is almost useless slow.</div><div class="gmail_extra"><br>


</div>
<div class="gmail_extra">Maybe you could use some of the more tuned LLVM datastructures? <a href="http://llvm.org/docs/ProgrammersManual.html#ds-set" target="_blank">http://llvm.org/docs/ProgrammersManual.html#ds-set</a></div>


</div>
</blockquote></div><br></div><div class="gmail_extra">Thank you for the pointer. This code does not have to be fast, so I thought that std::set is convenient for this use case and fast enough. The intention of this change is to remove a data member from the class to simplify it.</div>

</div>