Skip to content

Worker pool (Data Manager 7/9) - #494

Draft
frasercl wants to merge 15 commits into
feature/data-manager-6-indexingfrom
feature/data-manager-7-worker-pool
Draft

frasercl wants to merge 15 commits into
feature/data-manager-6-indexingfrom
feature/data-manager-7-worker-pool

Conversation

@frasercl

@frasercl frasercl commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Adds a TaskPool class for offloading tasks like chunk decoding and assembly from the main thread.

Also introduces a BorrowGuard class for typed arrays that may be temporarily transferred to a worker for processing. When a BorrowGuard is used in the arguments to a task, the contained array is automatically transferred to the worker (rather than copying), then transferred back to the main thread and returned to the BorrowGuard when the task is done.

@frasercl
frasercl added this pull request to stack #489 October 5, 2026 22:14
@frasercl
frasercl force-pushed the feature/data-manager-7-worker-pool branch from c20b113 to 9986632 Compare October 5, 2026 22:50
@frasercl
frasercl force-pushed the feature/data-manager-7-worker-pool branch 2 times, most recently from 72cea89 to 9f18ba6 Compare October 6, 2026 23:37
@frasercl
frasercl force-pushed the feature/data-manager-7-worker-pool branch from 9f18ba6 to 89b116f Compare October 7, 2026 21:01
@frasercl
frasercl force-pushed the feature/data-manager-7-worker-pool branch from f23c536 to d727755 Compare October 16, 2026 01:25

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant