The image file has been read multiple times so far
during metadata reading
during comparison for loop i
during comparison for loop j
The image reading from the disk is what takes the longest. The rest happens quite instantly.
One approach is storing the pics in RAM in a list when we read them from the disc initially for metadata reading but, this will be an issue when the dataset is hundreds of GBs or in TBs
The image file has been read multiple times so far
The image reading from the disk is what takes the longest. The rest happens quite instantly. One approach is storing the pics in RAM in a list when we read them from the disc initially for metadata reading but, this will be an issue when the dataset is hundreds of GBs or in TBs