You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Noel Grandin (JIRA)" <ji...@apache.org> on 2009/04/20 19:40:47 UTC

[jira] Commented: (PIVOT-103) Optimize LabelSkin#paint(Graphics2D)

    [ https://issues.apache.org/jira/browse/PIVOT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700880#action_12700880 ] 

Noel Grandin commented on PIVOT-103:
------------------------------------

Had a quick look thru, and it looks pretty tight already.
Don't see how you could speed it up much short of caching the output.
You'd need to be careful to invalidate the cache when the parent background changed (because anti-aliasing will need to be redone).

Swing caches the output of paint operations pretty extensively  - double-buffering support is built in at JComponent level.
They did it less for speed purposes than to limit tearing and grey rectangles on the display, but it probably gives a decent performance jump.

> Optimize LabelSkin#paint(Graphics2D)
> ------------------------------------
>
>                 Key: PIVOT-103
>                 URL: https://issues.apache.org/jira/browse/PIVOT-103
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>            Reporter: Todd Volkert
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 1.2
>
>
> This paint method is called an order of magnitude more than any other.  It's actually already pretty fast, but if there's one method to optimize the hell out of, it's this one.

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