On Sat, 15 Jan 2022 04:23:33 GMT, SWinxy <d...@openjdk.java.net> wrote:

> Delete `sun.java2d.marlin.FloatMath` class in favor of methods in 
> `java.lang.Math`. The methods in `Math.java` are intrinsics and can gain from 
> significant speedups. Hand-written min/max operations are also replaced with 
> calls. 5 uses of `ceil` and 2 uses of `floor` were replaced.
> This should not cause any rendering differences from the different algorithms 
> being used, as they theoretically will end up at the same outcomes.

Hi,
Concerning the Marlin renderer, I made FloatMath for performance reasons, 
highly tuned impl. 
I doubt calling Math.ceil/floor or Math.min/max is really faster.
 I should test performance with your changes or write a jmh benchmark...

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

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

Reply via email to