Skip to content

Tracking issue for missing Iterator::size_hint implementations #5211

Closed
@Phlosioneer

Description

@Phlosioneer

size_hint() can sometimes allow for more efficient memory allocations, and other good performance things.

I intend to make a PR to implement the trivial / easy ones, at least.

This list will be updated as I sort through for false-positives.

I found them by running grep -r -n "impl.*\bIterator for |fn size_hint" src > size_hint_todo.txt. Then, delete any pairs of an Iterator line followed by a size_hint line, and manually check the remaining Iterator lines for false positives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions