<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/129321>129321</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc++] `ranges::contains(vector<int>)` is slow
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++,
performance
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ldionne
</td>
</tr>
</table>
<pre>
Preliminary testing seems to suggest that it's 50% slower than libstdc++'s version. We should investigate that benchmark and why we're doing so poorly, since this is such a simple algorithm.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkUGPnDAMhX-NuViLghkGOHDY3emce-s5BA-4DckoDjOaf19BV22lSJFsvc9-z1ZV5sA8QPMBzaWwW15iGvwkMQQuxji9hu-JvawSbHphZs0SZlTmVTFH1G2eWTPmxWaUDNQqNgaoQfXxyWlvBPQyap4c0MfxWsUHJ5UYSvzBqEvc_IQSHjt9tpn_4EYObllt-oU2TPhcXvhkoDYxTvFYIuI9xuRfQJ-oEtyuE0VR1M0taFFlvXtG6-eYJC9rWUxDPfV1bwseqvZk2raru7ZYhnasDHe941Nt2lvXknW2mqrmVvXcnbgpZCBDjSHqqKpr05bkyFB_o-l87p3tezgZXq340vvHWsY0F6K68VBRX1NVeDuy1yNnIi_j3zAI6BOI7pxuMa02ON5rzaVIw056G7dZ4WS8aNZ_7CzZH1f7D9VcEM4m2TCzQv0O9buLIVsJCtQ92OWYoP6UkKH-BtTD2RxR-fgstuSHJef7oaMr0HWWvGxj6eIKdN3Hfn1v9xR_sstA18OfAl2_LD4G-h0AAP__LJe-fA">