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

feat: provide createWebWorker #1033

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Dec 22, 2023

So compatible web workers can be created explicitly when desired.

@thewtex
Copy link
Member Author

thewtex commented Dec 22, 2023

Re: #1018

Copy link
Collaborator

@PaulHax PaulHax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. A step to removing this benign error causing "tee up" of a pipeline in VolView:
https://github.com/Kitware/VolView/blob/main/src/io/dicom.ts#L69-L79

To "prime the pump" for the .wasm asset, should VolView just fetch() its custom .wasm file? Is there another possible speedup by asking the browser to "load" the .wasm?

const outputs = null
const inputs = null
const stdoutStderrPath = 'stdout-stderr-test'
const { returnValue, stdout, stderr } = await itk.runPipeline(webWorker, stdoutStderrPath, args, outputs, inputs, { pipelineWorkerUrl })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is { pipelineWorkerUrl } option still needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! Good catch.

@thewtex
Copy link
Member Author

thewtex commented Jan 2, 2024

To "prime the pump" for the .wasm asset, should VolView just fetch() its custom .wasm file? Is there another possible speedup by asking the browser to "load" the .wasm?

I made a note to investigate this more in #1018

So compatible web workers can be created explicitly when desired.
@thewtex thewtex merged commit b52eab7 into InsightSoftwareConsortium:main Jan 2, 2024
83 of 109 checks passed
@thewtex thewtex deleted the create-web-worker branch January 19, 2024 22:55
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.

None yet

2 participants