On Tue, 8 Feb 2022 05:42:47 GMT, Sergey Bylokhov <[email protected]> wrote:

> When we convert the image from one color profile to another one we copy data 
> to the temp array, and after conversion, we commit both(src and dst). But the 
> source array could be discarded since we do not(should not) change it. 
> 
> Tested on windows (fastest result after a few runs). ThreadsMAX is 32 
> threads. The test is just a "ColorConvertOp.filter()" for the opaque buffered 
> image.
> 
> ![images](https://user-images.githubusercontent.com/14138494/152925400-cf248f88-e2ba-47ec-8d58-71784026ff8a.png)
> 
> https://jmh.morethan.io/?gists=541569ac2fe6173d471455d282680fa2,d3b91e1fba067c71fc73a6df8d47773f

This pull request has now been integrated.

Changeset: 8441d51e
Author:    Sergey Bylokhov <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/8441d51e71e143250b44eea74114a624cf00cc3e
Stats:     10 lines in 1 file changed: 1 ins; 0 del; 9 mod

8281419: The source data for the color conversion can be discarded

Reviewed-by: prr, aivanov

-------------

PR: https://git.openjdk.java.net/jdk/pull/7375

Reply via email to