Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@ldionne

Description

@ldionne
Issue body actions

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.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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.