No longer do we read in all the files for caching their metadata. Now cache files are created when scan files are created (or found without a corresponding cache file) and are used for listing purposes, which means we only ever have to open the scan files when we actually need to view a scan!
This is a massive savings on storage-reading as starting up with ~100MB of scan files only requires reading ~2MB, as each cache file is 50-300kB, almost entirely due to the jpeg data (which is compressed beyond what the ScanFile holds)
It might be ideal to create a proper thumbnail image for even more optimal space usage, but for now they're just significantly compressed.
No longer do we read in all the files for caching their metadata. Now cache files are created when scan files are created (or found without a corresponding cache file) and are used for listing purposes, which means we only ever have to open the scan files when we actually need to view a scan!
This is a massive savings on storage-reading as starting up with ~100MB of scan files only requires reading ~2MB, as each cache file is 50-300kB, almost entirely due to the jpeg data (which is compressed beyond what the ScanFile holds)
It might be ideal to create a proper thumbnail image for even more optimal space usage, but for now they're just significantly compressed.
Resolves #26