To speed time to first image render, we can improve the range and histrogram computation in useAutoRangeValues:
https://github.com/Kitware/VolView/blob/main/src/composables/useWindowingConfigInitializer.ts#L31-L38
The image is not rendered until the autoRangeValues are computed. Can we defer the computation and do it in a web worker?
The above chunk of code takes ~570ms for the CT volume here:
https://volview-dev.kitware.app/?urls=[https://data.kitware.com/api/v1/file/63f39e907b0dfcc98f669cc6/download/joe-slim-pet-ct.zip]
Can we optimize/parallelize?
autoRangeValues is computed 3 times for the same image on the initial load. Probably not needed.
To speed time to first image render, we can improve the range and histrogram computation in useAutoRangeValues:
https://github.com/Kitware/VolView/blob/main/src/composables/useWindowingConfigInitializer.ts#L31-L38
The image is not rendered until the autoRangeValues are computed. Can we defer the computation and do it in a web worker?
The above chunk of code takes ~570ms for the CT volume here:
https://volview-dev.kitware.app/?urls=[https://data.kitware.com/api/v1/file/63f39e907b0dfcc98f669cc6/download/joe-slim-pet-ct.zip]
Can we optimize/parallelize?
autoRangeValues is computed 3 times for the same image on the initial load. Probably not needed.