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 28933 - Close a file in the editor
Summary: Close a file in the editor
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL: http://performance.netbeans.org/respo...
Keywords: PERFORMANCE
: 28947 (view as bug list)
Depends on:
Blocks: 26581
  Show dependency tree
 
Reported: 2002-11-22 10:47 UTC by Marian Mirilovic
Modified: 2008-12-23 09:28 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2002-11-22 10:47:13 UTC
Closing editor, tab in the editor takes long time.

Marian's measurement (time in milliseconds):
conditions: 
 - SUN UltraSparc60 / 512 MB RAM / Solaris 5.8 /
CDE
 - JDK1.4.1(01)
 - [nb_dev](200211140100) , MDI
        - mounted sampledir

close a file in the editor
 close maximalized SE    313     174     213
 close last one tab      138     175     142
 close second tab        276     197     211

Test cases described on page :
http://performance.netbeans.org/qa/TestSuites.html#close_tab_in_editor
Comment 1 Marian Mirilovic 2002-11-22 14:08:17 UTC
Dafe's measurements - testing conditions: PC Dell Pentium III, 600Mhz,
512 MB memory, JDK 1.4.1, Netbeans Main trunk build, mounted sampledir
local filesystem, opened 8 java source files, 3 plain text files.
times in milliseconds.

action: close java source, new active is another
 java source:
     547, 438, ?1860?, 609, 593

action: close plain text, new active is text: 203, 282
 target: should react in 100ms

further observations: performance was reported to be even worse when
data in editor are modified.

candidates for speedup: operations on tabbed pane in core/winsys,
removeNotify and paint in editor module.
Comment 2 Marian Mirilovic 2002-11-22 14:09:16 UTC
*** Issue 28947 has been marked as a duplicate of this issue. ***
Comment 3 Marian Mirilovic 2002-11-22 14:10:49 UTC
*** Issue 28947 has been marked as a duplicate of this issue. ***
Comment 4 mslama 2003-01-14 14:32:24 UTC
I take this.
Comment 5 mslama 2003-01-20 15:52:45 UTC
I did more detail mesurement (I closed 10 files, I give average
value.) I have Linux, KDE 2.1.1, Pentium III, 700MHz, JDK 1.4.1_01.
1.Text file (copy of short REAME.txt). Whole closing operation takes
283ms, close itself 56ms (20%).
2.Java source file (some files from org.netbeans.core). Whole closing
operation takes 711ms, close itself takes 113ms (16%).

It seems it is similar to workspace switching. Most of time is spent
during refreshing/painting/activating newly displayed component. It
will be probably similar to switching tabs/components. I always
restarted IDE so that CloneableEditor.componentShowing() is called but
it is called during closing component so it is included in closing
time. I will try to measure it using OptimizeIt to get more details.
Comment 6 mslama 2003-01-21 08:50:20 UTC
More details: In case of java source files there is running parser in
background when I close files. I give details of text file measurement
 to avoid distortion.

19% is painting and validation
6% timer (mostly 5.5% property sheet delayed updater)
17% closing in
CloseButtonTabbedPane$CloseButtonListener.eventDispatched (10% takes
TopComponent.close()

When I recompute values to 100% I get:
38% painting
12% timer (11% property sheet)
34% closing (20% TopComponent.close())

During measurement CPU is not all the time 100% utilized. So there is
some time spent in wait() so we must recompute values from OptimizeIt
to get relative ratios.

I do not see any way how to improve closing speed.
Comment 7 Jan Chalupa 2003-11-03 15:44:01 UTC
*** Issue 28947 has been marked as a duplicate of this issue. ***
Comment 8 Marian Mirilovic 2003-11-26 12:58:46 UTC
Because Window System v1 will not be supported from now by our team, all old
winsys issues (now "core/window system v1" issues) are going to be closed as
WONTFIX. 

Changes in API which emerged both from UI spec 
and problems with adjusting to the older API are described in the document
http://core.netbeans.org/windowsystem/changes.html.
 It shows also recommends how the client code should be adjusted to the new
window system.

If you think this issue apply also to the new winsys then change the
subcomponent (to "core/window system") and REOPEN it.
Comment 9 Marian Mirilovic 2003-11-27 15:13:40 UTC
verified