kornelski / cavif-rs

AVIF image creator in pure Rust
https://lib.rs/cavif
BSD 3-Clause "New" or "Revised" License
582 stars 29 forks source link

thread count #16

Closed dbquarrel closed 3 years ago

dbquarrel commented 3 years ago

cavif takes a number of threads equal to available cores on the host... it would be nice to have a parameter to limit or control the number of threads being launched for fine tuning / resource management on large amounts of bulk processing.

kornelski commented 3 years ago

Makes sense.

Can you give it a try and make a PR that adds --threads arg?

dbquarrel commented 3 years ago

I don't know rust but I'll give it a shot.

dbquarrel commented 3 years ago

Done.