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 109347 - performance regression in "Create empty UML Diagram"
Summary: performance regression in "Create empty UML Diagram"
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL: http://xtest-db.czech.sun.com/AllInOn...
Keywords: PERFORMANCE
Depends on: 116917
Blocks:
  Show dependency tree
 
Reported: 2007-07-11 12:05 UTC by Oleg Khokhlov
Modified: 2007-10-01 14:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Method times (23.54 KB, application/octet-stream)
2007-09-13 23:36 UTC, Craig Conover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2007-07-11 12:05:06 UTC
in recent builds creation time increased from 2-3 sec. to 10-15 sec. for Win/Linux and from 15 to 50 sec for Solaris.
Comment 1 Craig Conover 2007-09-11 20:55:23 UTC
QE: This was opened a couple months ago. Please retest on latest build. Using 256 as my mx setting, I am getting diagram
creation in under 5 seconds. If still an issue, reopen.
Comment 2 Rashid Urusov 2007-09-12 14:59:55 UTC
According last data from Performance dashboard Creating empty UML diagram takes 6377 ms on Linux Ubuntu and
6784 ms on Windows XP on recomended configuration machines.
Comment 3 Craig Conover 2007-09-13 23:35:54 UTC
Did some profiling but not sure what can be tidied up to make it run faster. Attached is a screenshot of the profile
session.
Comment 4 Craig Conover 2007-09-13 23:36:27 UTC
Created attachment 48783 [details]
Method times
Comment 5 Viktor Lapitski 2007-09-14 21:08:21 UTC
i compared a 5.5 and couple of 6.0 builds, as of 08/29 and 09/13. 
There isn't visually noticeable difference, less mentioned 
above 2-3 sec. to 10-15 sec 
or 1.2 vs. 12 sec mentioned here 
http://jupiter.czech.sun.com/wiki/view/PerformanceQE/UMLPackPerformance
On my specific laptop (2.33 Centrino Duo it took about 3-4 sec. for both cases 
- 5.5 and 6.0)

Please provide specific reproducible scenario or 
instructions or links to instructions on how to/where from 
to run the automated test.

Also, last comment from Rashid makes it look like the bug is about 
absolute value on recommended config, though originally it was filed
 about regression. Please clarify. 
Comment 6 Viktor Lapitski 2007-09-27 09:05:57 UTC
now i see the problem - when the diagram is created and thus 
new node is added into the folder with many existing nodes (like 
default package of jEdit model - 200+ nodes) the delay is noticeable. 
It is also happens to any new element - "new class" for example. 
The reason is linear search through the node set in openide/nodes 
that is filed as IZ 116917 
Comment 7 Viktor Lapitski 2007-09-27 20:41:45 UTC
fixed as openide/nodes IZ 116917
Comment 8 Rashid Urusov 2007-10-01 14:48:49 UTC
VERIFIED in build 200709301200