Skip to content

[libc++] Optimize std::find_end #129318

Open
@ldionne

Description

@ldionne

That algorithm is super slow, I noticed while benchmarking it. We could probably short-circuit it with a std::find for the first element of the needle. We should also consider starting from the end for bidirectional iterators if we don't already (looks like we don't).

Metadata

Metadata

Assignees

Labels

libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions