bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/27987] New: TODO: Replace Graphics.drawString with TextLayout


From: sven at physto dot se
Subject: [Bug swing/27987] New: TODO: Replace Graphics.drawString with TextLayout.draw()
Date: 11 Jun 2006 00:28:35 -0000

Wherever possible, we should work now to replace the occurences of drawString()
in Swing with TextLayout.draw(). 

Since drawString works by using TextLayout, it will save re-layouting the text
every time a string is drawn. The speed increase is quite significant. 

Doing a benchmark of drawing a string 1000 times on JamVM, I get 11 seconds vs
1.7 seconds for drawString versus TextLayout.draw().


-- 
           Summary: TODO: Replace Graphics.drawString with TextLayout.draw()
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: roman at kennke dot org
        ReportedBy: sven at physto dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27987





reply via email to

[Prev in Thread] Current Thread [Next in Thread]