AWT text measuring implementations
The Java 6 (J2SE) implementation of AttributedString
, TextLayout
, and LineBre开发者_运维百科akMeasurer
classes use anti-aliasing properties and fractional math for metrics calculations. This causes a severe performance penalty.
What suggestions (for Cent OS Linux) do you have to increase performance? Such as:
- A faster JVM (JDK 1.7, Oracle's JRockit, IBM)
- A different AWT implementation (any?)
Thank you!
Does the java.awt.FontMetrics
class give any better performance? It may still be used by the classes you've mentioned, but it's a pre-Java 6 implementation at least.
精彩评论