diff options
author | Peng Liu <winner245@hotmail.com> | 2025-02-26 12:18:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 12:18:25 -0500 |
commit | 7717a549e91c4fb554b78fce38e75b0147fb6cac (patch) | |
tree | 961ce4ed8e1658652b4e67de94333cc7ab16d17f /libcxx/test/benchmarks/algorithms/minmax.bench.cpp | |
parent | 7ffeab3121c984cc00f79b0a78f372a4f7526e3b (diff) | |
download | llvm-7717a549e91c4fb554b78fce38e75b0147fb6cac.zip llvm-7717a549e91c4fb554b78fce38e75b0147fb6cac.tar.gz llvm-7717a549e91c4fb554b78fce38e75b0147fb6cac.tar.bz2 |
[libc++] Optimize ranges::equal for vector<bool>::iterator (#121084)
This PR optimizes the performance of `std::ranges::equal` for
`vector<bool>::iterator`, addressing a subtask outlined in issue #64038.
The optimizations yield performance improvements of up to 188x for
aligned equality comparison and 82x for unaligned equality
comparison. Moreover, comprehensive tests covering up to 4 storage words
(256 bytes) with odd and even bit sizes are provided, which validate the
proposed optimizations in this patch.
Diffstat (limited to 'libcxx/test/benchmarks/algorithms/minmax.bench.cpp')
0 files changed, 0 insertions, 0 deletions