After the user selects volume in the module interface using volumeNodeComboBox selector, the application is trying to find any DICOM Segmentation series that reference the image volume in the selector. This is done in onVolumeChanged event handler in https://github.com/ImagingDataCommons/CrossSegmentationExplorer/blob/0953cf84f60c056a41bbb66a8d4578a76cfbbc7c/SegmentationComparison/SegmentationComparison.py#L672.
Right now, even if the number of files in the DICOM database is small, it takes really long time (~30 sec) to parse the content and find all segmentations that reference the image.
Investigate the causes of slowness and suggest any optimizations or fixes to make this process faster.
After the user selects volume in the module interface using
volumeNodeComboBoxselector, the application is trying to find any DICOM Segmentation series that reference the image volume in the selector. This is done inonVolumeChangedevent handler in https://github.com/ImagingDataCommons/CrossSegmentationExplorer/blob/0953cf84f60c056a41bbb66a8d4578a76cfbbc7c/SegmentationComparison/SegmentationComparison.py#L672.Right now, even if the number of files in the DICOM database is small, it takes really long time (~30 sec) to parse the content and find all segmentations that reference the image.
Investigate the causes of slowness and suggest any optimizations or fixes to make this process faster.