Skip to content

stream::rebatch has quadratic complexity #18

Description

@FloopCZ

Currently stream::rebatch uses column_t::take that has a complexity linear to the number of elements and thus rebatch may have up to quadratic complexity when large batch is rebatched to batch size 1. A solution would be to store the batch in std::deque instead of std::vector.

See https://github.com/iterait/hipipe/blob/dev/include/hipipe/core/stream/column_t.hpp#L171.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformanceRelates to performance (compilation or runtime)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions