You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2007/09/17 09:14:32 UTC

[jira] Created: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

[classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
----------------------------------------------------------------------------

                 Key: HARMONY-4801
                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
             Project: Harmony
          Issue Type: Improvement
            Reporter: Igor V. Stolyarov


I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost because processing of Opaque Images more then 3 times faster then Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov closed HARMONY-4801.
------------------------------------


Fix was verified by Igor. Issue closed.

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexei Zakharov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov resolved HARMONY-4801.
--------------------------------------

    Resolution: Fixed

Thank for the fix Igor. It was committed at the revision 576299. Please verify.

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexei Zakharov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor V. Stolyarov updated HARMONY-4801:
---------------------------------------

    Description: I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.  (was: I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost because processing of Opaque Images more then 3 times faster then Transparen Images.)

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov reassigned HARMONY-4801:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexei Zakharov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor V. Stolyarov updated HARMONY-4801:
---------------------------------------

    Attachment: H-4801.patch

Fix attached.

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost because processing of Opaque Images more then 3 times faster then Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4801) [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529055 ] 

Igor V. Stolyarov commented on HARMONY-4801:
--------------------------------------------

Works for me.
Thank you Alexei.

> [classlib][awt] Performance improvement for java.awt.Color.ColorPaintContext
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-4801
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4801
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexei Zakharov
>         Attachments: H-4801.patch
>
>
> I would like suggest performance improvement for java.awt.Color.ColorPaintContext. According to Spec in method createPaintContext of Paint interface ColorModel parameter is used only as hint. If the application does not prefer a specific ColorModel, the null ColorModel argument will give the Paint implementation full leeway in using the most efficient ColorModel it prefers for its raster processing. Now Harmony create defaultRGB ColorModel which is not convenient in most cases. I suggest using defaultRGB ColorModel only for Colors which have tansparency different from OPAQUE and DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF) for OPAQUE colors. It should give significant boost on BufferedImage fill opatations because processing of Opaque Images more than 3 times faster than Transparen Images.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.