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 128585 - Time to switch to Schema View in Navigator exceeds 100 ms
Summary: Time to switch to Schema View in Navigator exceeds 100 ms
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 16:50 UTC by Alexander Kouznetsov
Modified: 2008-04-08 10:52 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 16:50:33 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 to schema view in Navigator for XSD file is around 4 seconds, should be within 100 ms.
Comment 1 Samaresh Panda 2008-02-28 05:56:49 UTC
Can you provide some more info? Can you help us reproduce it manually?
Comment 2 Alexander Kouznetsov 2008-02-28 09:22:29 UTC
The scenario is as following:

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

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

http://wiki.netbeans.org/TS_60_Performance#section-TS_60_Performance-TestSuiteMeasureActions
Comment 3 tonybeckham 2008-02-28 19:00:46 UTC
For me, the process takes 2-3 sec.

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 4 Michael Nazarov 2008-02-29 13:26:25 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 5 Samaresh Panda 2008-03-05 22:16:35 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 6 tonybeckham 2008-03-06 08:19:35 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)
Comment 7 Alexander Kouznetsov 2008-04-08 10:52:23 UTC
IDE should respond while the data is being prepared. Filed another issue 132298