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 133640 - Too slow open of project selection dialog on root of Nb Hg repo
Summary: Too slow open of project selection dialog on root of Nb Hg repo
Status: RESOLVED DUPLICATE of bug 127170
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-04-22 11:51 UTC by Jaroslav Tulach
Modified: 2008-04-25 12:29 UTC (History)
1 user (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 Jaroslav Tulach 2008-04-22 11:51:40 UTC
Whenever I start my computer, or whenever I stop working on some other Hg repository and switch to NetBeans to open a 
project from my NetBeans tree, like:

$HOME/src/netbeans/main/

the IDE stops responding for 30s-1min. This is unacceptable performance. It forces me to go away from computer, do 
something else and even forget what I wanted to do.

I guess the reason for slowness is that the apisupport checks whether all these directories contain correct project 
which results in reading of ~700 nbproject/project.xml files. Please, find a way to speed it up. I believe that in 
case of NetBeans sources this could be done by detecting Nb structure by presence of few important modules and then 
claiming all the directories along it to be projects as well. There can be false positives, but that will not matter, 
the amount of projects is so big that one needs to know what to select anyway.
Comment 1 Jesse Glick 2008-04-23 15:28:25 UTC
1. apisupport.project has nothing to do with this. The ProjectFactory.isProject is in project.ant.

2. The isProject method is already as fast as it is reasonable to be. It does not open project.xml files, it only checks
for their existence. Your inode cache is cold.

3. It is an aspect of the Open Project dialog that it synchronously asks isProject on every subfolder. I think this
could be fixed.

*** This issue has been marked as a duplicate of 127170 ***