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 73816 - PERF: Slow xml files node popup in Projects view
Summary: PERF: Slow xml files node popup in Projects view
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 80723
  Show dependency tree
 
Reported: 2006-03-21 14:59 UTC by Jaroslav Pospisil
Modified: 2008-10-13 10:53 UTC (History)
4 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 Jaroslav Pospisil 2006-03-21 14:59:45 UTC
Context.xml node popup in Projects view is slow.

  Context.xml node popup in Projects View   RHE Linux 3  Solaris 9  Win XP
   [ ms ] / 100 ms 	1st usage 	    186 	 435 	    151
                 Subsequent usage 	    81 	         111  	    54
Comment 1 Jaroslav Pospisil 2006-03-21 15:02:58 UTC
Web.xml node popup is also slow.

Web.xml node popup in Projects View         RHE Linux 3  Solaris 9  Win XP
   [ ms ] / 100 ms 	1st usage 	    165 	 754 	    182
                 Subsequent usage 	    63 	         104 	    62
Comment 2 _ rkubacki 2006-06-21 14:47:48 UTC
While profiling actions on web.xml and other desriptors I see XML parsing using
validation, namespaces and schemas. One posility is to consider schema caching -
http://www-128.ibm.com/developerworks/xml/library/x-perfap3.html

Probably not a win for the first use but can be usefull for next reparsing.
Comment 3 _ rkubacki 2006-06-21 14:58:54 UTC
And the reason why I saw XML parsing is XmlMultiViewDataSynchronizer that builds
model when I select web.xml node (and navigator is loading the content of
documented and concurrent synchronizer is parsing). Why do we need synchronized
when there is no modification?
Comment 4 Marek Fukala 2006-06-26 13:14:09 UTC
I think we do not need to init the synchronizer before doing a change or at
least before opening in editor, do we? Erno?
Comment 5 Marek Fukala 2006-07-27 15:05:06 UTC
Changing issue type to TASK since the problem should be fixed in the
infrastucture (see the issue 80723).
Comment 6 Oleg Khokhlov 2008-09-24 12:05:05 UTC
latest results Netbeans 6.5[080921]

testContextXmlFilePopupMenuProjects
   [ ms ] / 100 ms 	
                        Ubuntu   Solaris   WinXP
1st usage 	        29 	36 	54
Subsequent usage 	28 	30 	35

 testWebXmlFilePopupMenuProjects
   [ ms ] / 100 ms 	
                        Ubuntu   Solaris   WinXP                         
1st usage 	        27 	17 	29
Subsequent usage 	23 	17 	23
Comment 7 Marek Fukala 2008-10-13 10:53:45 UTC
issue #80723 describes the problem.