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 56773 - Very poor performance of "Focus rescanning"
Summary: Very poor performance of "Focus rescanning"
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 08:34 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (26.53 KB, text/plain)
2005-03-22 08:39 UTC, Milan Kubec
Details
another tds (15.25 KB, text/plain)
2005-03-22 08:56 UTC, Milan Kubec
Details
one more td (12.71 KB, text/plain)
2005-03-22 10:49 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-03-22 08:34:13 UTC
[dev-200503211900, JDK 1.5.0_02]

I encountered very poor performance of "focus rescanning" feature.

I created default java application project, with one class. Then I switched to
different application to read description of user problem to reproduce it. After
returning back to IDE I invoked Refactoring/Rename without paying attention to
rescanning (I just forgot about it). Rename dialog was opened but it was blank
and status bar was showing "Checking changes... (50%)" for about 15 to 20 sec,
whole period the Rename dialog was blank. After finishing rescanning the Rename
dialog was painted correctly. This behavior is reproducible. Attaching thread dumps.

Computer configuration Notebook, P4 M 2GHz, 512 MB RAM.
Comment 1 Milan Kubec 2005-03-22 08:39:49 UTC
Created attachment 21016 [details]
thread dump
Comment 2 Milan Kubec 2005-03-22 08:56:26 UTC
Created attachment 21017 [details]
another tds
Comment 3 Milan Kubec 2005-03-22 10:49:31 UTC
Created attachment 21026 [details]
one more td
Comment 4 Milan Kubec 2005-03-22 11:09:38 UTC
Might be triggered by changing platform for some project. Until I changed
platform I was unable to reproduce but after adding another platform (JDK
1.4.2_07, JDK 1.5.0_01) and assigning it to some project I was able to reproduce
the problem.

Also it seems that the rescanning is not triggered after each focus of IDE
comming from external application. Sometimes just nothing happens.
Comment 5 Martin Matula 2005-03-22 17:26:48 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/scanning/FileScanner.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/FileScanner.java,v
 <--  FileScanner.java
new revision: 1.22; previous revision: 1.21
done
Comment 6 Milan Kubec 2005-06-30 10:25:57 UTC
Focus rescanning is no more used.