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

switch stateless actors with small overheads to tasks #154

Open
Joshuaalbert opened this issue Jan 13, 2025 · 0 comments
Open

switch stateless actors with small overheads to tasks #154

Joshuaalbert opened this issue Jan 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Joshuaalbert
Copy link
Owner

Some actors claim large resources for large swathes of time, but sit idle for lots of time as they wait for the deps to finish. This means we lose resource utilisation. Since the application of tasks is largely linear, we could refactor into a single actor that calls tasks. See visual below:

Currently if we have actors A (resources=X), B (resources=Y), C (resources=Z), linearly composed, A o B o C, then we claim X+Y+Z resources, even though only one is ever using compute at a given moment.

Instead we could reformulate as stitching together ephemeral tasks, freeing up resources in between.

Or, instead we could

@Joshuaalbert Joshuaalbert added the enhancement New feature or request label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant