#78 Speeding up initial drawing

closed
nobody
None
5
2012-10-08
2009-09-14
Stefan Kuhn
No

In JCP, the drawing of a single atom as first element was very slow. These patches have some fixes doing this:
- Unncessary text groups are avoided
- FontMetrics is set up in constructor
Note that the most important slowdown comes from swing, taking around half a second for the first string. By drawing a dummy string in background color first time the panel is painted this can be hidden from the user. For doing this, the font manager is needed, so I added a getter for it.

Discussion

  • Egon Willighagen

    Please explain why the font metrics should not be retrieved each time. Is the font metric object actually always the same?

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks