Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute pending worker shards on-the-fly #47

Open
philipp-fischer opened this issue Jan 22, 2025 · 0 comments
Open

Compute pending worker shards on-the-fly #47

philipp-fischer opened this issue Jan 22, 2025 · 0 comments

Comments

@philipp-fischer
Copy link
Collaborator

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.

@voegtlel voegtlel marked this as a duplicate of #61 Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant