Issue | 83880 |
---|---|
Summary | [libc++] `ranges::ends_with` should forward to `equal` |
Labels | libc++, performance |
Assignees | |
Reporter | philnik777 |
`equal` forwards to `memcmp` for trivially equality comparable types, which is an order of magnitude faster than the generic loop. We should make use of that optimization in `ends_with`.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs