Shrink the dimensions of the image to convert to the minimum such that more than 4 GB of memory has to be addressed (was 8 GB). This also allows to run the test on machines that have at least 6 GB available (was 12 GB). Even travis-ci skipped this test so far (due to not enough ram)
Touch the input and output buffers before performing the conversion
Convert from yuv to rgb (was rgb to yuv, which is slower)
Compare the output using all
Compare the output at groups of 8 items
Difference:
On master:
time cargo test -- over_4gb
real 4m46.907s
With this patch:
time cargo test -- over_4gb
real 1m1.656s
With this patch in release mode:
time cargo test --release -- over_4gb
real 0m2.765s
Speedup the execution of test
over_4gb
.Actions taken:
all
Difference: On master:
With this patch:
With this patch in release mode: