This PR introduces a change to the image file reader that is used by the DICOMfileClient to read individual frames from multi-frame images. So far, frames have been read sequentially. Now, we'll use a multiprocessing.pool.ThreadPool to read multiple frames in parallel. We use threads instead of processes, because the read operation is I/O bound rather than CPU bound and the GIL should thus not be a bottleneck.
This PR introduces a change to the image file reader that is used by the
DICOMfileClient
to read individual frames from multi-frame images. So far, frames have been read sequentially. Now, we'll use amultiprocessing.pool.ThreadPool
to read multiple frames in parallel. We use threads instead of processes, because the read operation is I/O bound rather than CPU bound and the GIL should thus not be a bottleneck.