Skip to content

Performance options for a large number of small thumbnails #317

@davxiao

Description

@davxiao

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions