Skip to content

Compute pending worker shards on-the-fly #47

@philipp-fischer

Description

@philipp-fischer

Currently, energon pre-computes all shard ranges that a worker will walk through. This list can be very large and consume memory unnecessarily.
By defining a function for compute the Nth shard for a worker on-the-fly, this precomputation becomes obsolete.

When the state is saved to disk, only the current index (number of shard ranges already processed) needs to be stored, and potentially a shuffling seed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions