RFR: 8281419: The source data for the color conversion can be discarded
Phil Race
prr at openjdk.java.net
Tue Feb 8 15:59:11 UTC 2022
On Tue, 8 Feb 2022 05:42:47 GMT, Sergey Bylokhov <serb at openjdk.org> 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.
>
> 
>
> https://jmh.morethan.io/?gists=541569ac2fe6173d471455d282680fa2,d3b91e1fba067c71fc73a6df8d47773f
Marked as reviewed by prr (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/7375
More information about the client-libs-dev
mailing list