This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16731] New: GridBagLayout possibly slows down applications
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 00:27:44 -0000
- Subject: [Bug AWT/16731] New: GridBagLayout possibly slows down applications
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Some Acunia tests which employ GridBagLayout tend to take a long time
to load. Here's a list of such tests, but there may be others:
layout.BorderLayoutPositions
layout.CardLayoutPositions
layout.GridBagLayoutOverlay
layout.GridBagLayoutPositions
layout.GridBagLayoutRelative
layout.GridBagLayoutStacking
I'm not certain whether this is directly related to the GridBagLayout
class, since there are other tests which use GridBagLayout with over
dozen child components but still load relatively quickly.
------- Additional Comments From djee at redhat dot com 2004-02-19 13:09 -------
The common thing between these tests is that they contain many
heavyweight components. Simple instrumentation suggests that the
bottleneck occurs in the numerous addNotify() calls (one for each
heavyweight). My guess is that this is due to JNI method call
overhead. If that's true, I don't know how we can make it faster
other than to somehow streamline our native method calls so that they
execute faster.
------- Additional Comments From fitzsim at redhat dot com 2004-05-18 16:10 -------
OK, looks like we'll need to do some detailed profiling later.
--
Summary: GridBagLayout possibly slows down applications
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P1
Component: AWT
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: djee at redhat dot com
CC: djee at redhat dot com,gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16731