Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid temporary allocation of block importance costs
When tested at speed 3, this `collect` call was responsible for 50% of all allocations performed by rav1e. The `collect` was necessary for the row multithreading here to satisfy the borrow checker. However, even after the removal of row multithreading in the `update_block_importances` function, this change produces the following improvements: At speed 3: - 1.5% wall time improvement - 22% CPU time improvement - 2% peak memory reduction At speed 10: - 5% wall time improvement - 40% CPU time improvement
- Loading branch information