[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/24318] New: FontMetrics charsWidth performance
From: |
abalkiss at redhat dot com |
Subject: |
[Bug awt/24318] New: FontMetrics charsWidth performance |
Date: |
11 Oct 2005 19:55:34 -0000 |
The performance of the charsWidth method is quite poor, and the semantics are
probably wrong as well. The specs note that the width of a String is not
necessarily the same as the sum of the width of the characters, yet that
appears to be how we currently determine it.
The testcase attached shows the performance of our implementation versus the
JDK on 100000 lines of text. Approximate results are 0.3 seconds for them, 25
seconds for us.
charsWidth is quite often in swing.text painting and sizing and this can be
quite a problem with large amounts of text.
--
Summary: FontMetrics charsWidth performance
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: abalkiss at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24318
- [Bug awt/24318] New: FontMetrics charsWidth performance,
abalkiss at redhat dot com <=