Skip to content

[otap-df-quiver] Consider returning ExactSizeIterator from SubscriberState::to_progress_entries to avoid Vec allocation #1793

@AaronRM

Description

@AaronRM

Follow up item from this conversation. There is a possible memory optimization by avoiding the Vec allocation in to_progress_entries by returning a ExactSizeIterator instead of a Vec.

This will require a more substantial change to the call site at flush_progress().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions