Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
210 stars 64 forks source link

Make request queue concurrency configurable #636

Closed thewtex closed 1 year ago

thewtex commented 1 year ago

In the rpcQueue concurrency:

https://github.com/Kitware/itk-vtk-viewer/blob/a4cdbff73eb7a0cff73f391ad6ec628ad7cbe078/src/IO/ZarrMultiscaleSpatialImage.js#L232

default to the number of logical processors on the client:

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency

But also add a setRpcMaxConcurrency ImJoy API on the viewer. In itkwidgets, set this to limit the number of logical processors (times two?) on the server.

thewtex commented 1 year ago

Closed via #638 #640