On Sat, 28 Nov 2020 20:07:22 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> I prepared a simple [print 
>> test](http://cr.openjdk.java.net/~alexsch/8256264/performance/PrintTextPerformanceTest.java)
>>  sample which uses 4 different fonts (plain and bold) with different sizes 
>> and prints 640 lines on 10 pages.
>> 
>> I run the sample with and without the fix to PDF and measured the time which 
>> is used by the  deviceFill() method (it both converts the shape to path and 
>> fills it):
>> https://github.com/openjdk/jdk/blob/b21b96df2162c72098afcdfd2cf243a55a0f17e1/src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java#L1489
>> 
>> The average time without the fix: 2.77s (min 2.74s, max 2,78)
>> The average time with the fix: 2.76s (min 2.74s, max 2.77)
>> 
>> I removed the `sun.java2d.print.enablePathPrecisionScale` property from the 
>> fix.
>
>> I removed the `sun.java2d.print.enablePathPrecisionScale` property from the 
>> fix.
> 
> You forgot to delete it from the test.

The `sun.java2d.print.enablePathPrecisionScale` property is removed from the 
PathPrecisionScaleFactorTest test.

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

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

Reply via email to