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

Use the same (web) worker for multiple data decode #993

Closed
ivmartel opened this issue Sep 6, 2021 · 0 comments
Closed

Use the same (web) worker for multiple data decode #993

ivmartel opened this issue Sep 6, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ivmartel
Copy link
Owner

ivmartel commented Sep 6, 2021

The current code creates one (web) worker per worker thread run (see thread.js#L204). This code is mainly used when decoding jpeg encoded DICOM data and ends up creating one worker per data decode. This is inefficient since the worker setup can be costly (multiple imports and in turn http calls). The worker should be terminated only when the worker pool is not needed anymore.

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