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 117602 - [60cat] Performance problem while switching focus between java files in editor
Summary: [60cat] Performance problem while switching focus between java files in editor
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Max Sauer
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-10-03 12:30 UTC by karmagfa
Modified: 2009-10-22 13:22 UTC (History)
0 users

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 karmagfa 2007-10-03 12:30:55 UTC
Found in the version dev 200710011200, can be reproduced all the time.

Setup for reproducing the bug:
1) Create 2 new simple classes using the New Java File wizard, let's call them Class1 and Class2.
2) Open them both in the editor.
3) Make the navigator appear under the project explorer, so you can see both at the same time.

Now, when you change the selection between the files Class1.java and Class2.java in the project explorer, the view in
the navigator is instantly updated. However, when you change which of the opened editor tabs is activated, there is a
noticeable delay in the update of the view of the Navigator, we have time to see and read a "Please Wait..." in the
navigator.

I consider this a bug, the delay is clearly too long for a computer, something is wrong.
Comment 1 lttldrgn 2007-11-16 22:36:09 UTC
I've noticed the same thing.  Once you've clicked on a file in the Projects/Files explorer, the Navigator contents for
that file seem to be cached and when you click another file then back to the original, the contents do appear quickly. 
As stated in the issue description, switching source tabs results in much longer delay (5+ seconds) in the Navigator
pane updating.  I notice my CPU spike along with heap memory usage when this is happening so I imagine the file is being
reparsed and depending on the size/complexity of the file this can take 10+ seconds.

I am running the following:
NetBeans IDE 6.0 RC1 (Build 200711131200)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.20-16-server running on i386
Core2 Duo 2.66GHz and 4GB of RAM.
Comment 2 Marian Mirilovic 2009-10-22 13:17:25 UTC
we had a problem with such case .. but I am not able to reproduce it these days .. sorry for late evaluation -
objectbrowser issues stayd out of our radar for long time ;(
Comment 3 Marian Mirilovic 2009-10-22 13:22:43 UTC
works fine in NB 6.8