Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[libc++] Add segmented iterator optimizations to more algorithms #102817

Open
@philnik777

Description

@philnik777

We have a few algorithms which are optimized for segmented iterators, but a lot aren't yet. These algorithms would most likely benefit from adding such an optimization:

  • count_if
  • count (should probably forward to count_if)
  • equal
  • fill
  • fill_n (should probably forward to fill or the other way around)
  • fold_left_with_iter
  • for_each_n (Should probably forward to for_each)
  • generate
  • generate_n (should probably forward to generate)
  • lexicographical_compare
  • ranges::min (range overload)
  • ranges::max (range overload)
  • ranges::minmax (range overload)
  • mismatch
  • replace (should probably forward to replace_if)
  • replace_if
  • replace_copy (should probably forward to replace_copy_if)
  • replace_copy_if
  • reverse_copy
  • swap_ranges
  • transform
  • distance

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.metaissueIssue to collect references to a group of similar or related issues.performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions