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 128596 - Time to switch between xsd files while Navigator is in Schema View mode exceeds 100 ms
Summary: Time to switch between xsd files while Navigator is in Schema View mode excee...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL: http://test4u.czech.sun.com/test4u-us...
Keywords: PERFORMANCE, TEST
Depends on:
Blocks:
 
Reported: 2008-02-27 17:27 UTC by Alexander Kouznetsov
Modified: 2008-03-06 08:20 UTC (History)
2 users (show)

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 Alexander Kouznetsov 2008-02-27 17:27:03 UTC
Product Version         = NetBeans IDE Dev (Build 200802260005)
  Operating System        = Linux version 2.6.20-15-generic running on i386
  Java; VM; Vendor        = 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc.

Time to switch between xsd files while Navigator is in Schema View mode is up to 25 seconds, should be within 100 ms.
See URL
Comment 1 Samaresh Panda 2008-02-28 05:56:04 UTC
Can you provide some more info? 25sec is a long time. Are you sure about the tests?
Comment 2 Samaresh Panda 2008-02-28 05:57:21 UTC
Also, can you help us reproduce it manually?
Comment 3 Alexander Kouznetsov 2008-02-28 09:24:27 UTC
The test seems to be ok, I got 13 seconds manually on my computer which is much better than recommended configuration.

The scenario is as following:

   1. Expand SOATestProject node in Projects view
   2. Expand Process Files node
   3. Select batch.xsd node
   4. Switch combobox in Navigator panel in Schema View
   5. Select fields.xsd node 

    * EXPECTED RESULT: Navigator panel updated with Schema View within 100 ms 

http://wiki.netbeans.org/TS_60_Performance#section-TS_60_Performance-SOAXMLFunctionality
Comment 4 tonybeckham 2008-02-28 18:57:51 UTC
For me this action takes about 1 sec.  I know it is greater than the 100ms barrier but not anywhere close to 25sec.

Product Version: NetBeans IDE Dev (Build 200802270005)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Comment 5 Michael Nazarov 2008-02-29 13:29:13 UTC
Well, this is issue, but not exactly in area as specified in spec.
First of all we are dealing with huge amount of data in this test case and we can't
set 100ms limit for data of arbitrary size. The bigger data the longer time required.
Switching itself doesn't required much time but followed recalculation does, so there
are two ways to solve this: claim this issue not as defect but as enhancement and
provide something like progress bar for such long operations in the future; or keep
kind of cache and skip recalculating each time but use already existing data. In last
case progress bar will need also for the first time, so I prefer first case.

Finally: set type to enhancement and keep or even increase priority. Implement after
beta.
Comment 6 Samaresh Panda 2008-03-05 22:17:06 UTC
Fix integrated.
http://hg.netbeans.org/main?cmd=changeset;node=0a0690fa388b
http://hg.netbeans.org/main?cmd=changeset;node=c653d18df529
http://hg.netbeans.org/main?cmd=changeset;node=eb0bbbc0fc1d
Both design view and schema view will respond with a please wait similar to java classes.
Comment 7 tonybeckham 2008-03-06 08:20:05 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200803051205)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)