-
Notifications
You must be signed in to change notification settings - Fork 370
Description
I have a large number (>10,000) of small size thumbnails (256x256x16 bit) to process.
I'm looking at two options and need your advice on which is better from pure compression and decompression perspective.
To simplify for the sake of the discussion, let's say in either option, all data is loaded into memory so there's no disk I/O to accounted for, and assume it's a single thread process and no concurrency.
option 1 is to handle each thumbnail is an individual qoi object, so each thumbnail gets compressed/decompressed individually. For the sake of benchmark purposes let's say this process times 100, so 100 thumbnails are processed.
option 2 is to create a large canvas for every, say 100 thumbnails, so that every 100 thumbnails are ordered in a 10x10 and filled up the canvas, then the canvas gets compressed/decompressed as one qoi object.
Which option will have less processing time?