This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56375 - StatusLineElement leak and performance problem
Summary: StatusLineElement leak and performance problem
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-03-14 13:16 UTC by Petr Nejedly
Modified: 2008-12-22 17:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2005-03-14 13:16:34 UTC
getStatusLineElements registers a lookup listener on StatusLineElementProviders
On each change, the listener calls (from AWT) decoratePanel(), which calls back
to getStatusLineElements and registers another instance of the listener.
So each time there is an event from the default Lookup about such a change,
the number of listeners grows exponentially and the time to process them as well.
You can probably easily trigger the problem by reloading a module.
Comment 1 Jiri Rechtacek 2005-03-14 14:05:14 UTC
Checking in src/org/netbeans/core/windows/view/ui/MainWindow.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/ui/MainWindow.java,v  <-- 
MainWindow.java
new revision: 1.47; previous revision: 1.46
done
Comment 2 Petr Nejedly 2005-03-14 14:41:30 UTC
OK