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 204906 - Preparing data for searching takes too long
Summary: Preparing data for searching takes too long
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal with 3 votes (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 22:32 UTC by _ gtzabari
Modified: 2012-03-26 08:38 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 _ gtzabari 2011-11-09 22:32:49 UTC
Product Version: NetBeans IDE Dev (Build 201111080600)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\g.tzabari\.netbeans\dev
Cache directory: C:\Users\g.tzabari\.netbeans\dev\var\cache

1. Select Maven project with many sub-projects (13 in my case)
2. CTRL+F
3. "Dog"
4. ENTER
5. The IDE reports "Preparing data for searching..." for 3-5 minutes before actually beginning the search. Once the search begins, it ends within 30 seconds.

It's not clear what the IDE is doing all this time.
Comment 1 _ gtzabari 2011-11-09 22:38:30 UTC
Upon further investigation, this only seems to occur for my C++ projects. If I select one of them (with no sub-projects) and run a Find operation the same thing happens.

I dug further and noticed that the "target" directory contains the contents of http://search.maven.org/remotecontent?filepath=com/googlecode/boost-maven-project/boost-api/1.47.0-b1/boost-api-1.47.0-b1.jar (that is, extracted)

This file contains 8600 files. I suspect that at least 2-3 of my projects contain boost-api extracted in the "target" directory, so we're searching through at least 25800 files.

Still, it's not clear what "Preparing data" is doing. It is not granular enough. With the actual search operation I can see what is going on. With "preparing data" it feels like I'm waiting forever for a single operation.

1. The operation itself might be too slow.
2. There should be a better indication of progress.
Comment 2 Jaroslav Havlin 2011-11-10 08:31:46 UTC
Both search performance and progress indication will be probably improved in the next release.
Thank you for reporting.
Comment 3 ricktw 2012-02-13 16:18:57 UTC
Same goes for Java projects.
Comment 4 Jaroslav Havlin 2012-03-21 15:08:21 UTC
http://hg.netbeans.org/core-main/rev/5040c9a4936c
Fixed. "Preparing search" stage was abolished.
Comment 5 ricktw 2012-03-26 07:52:31 UTC
I've tested a nightly build with this new search implementation: works very nice.
Its a lot faster than the previous implementation!

Thanks for investing time in the area of the IDE!

gr,
Rick
Comment 6 ricktw 2012-03-26 08:19:13 UTC
"Thanks for investing time in the area of the IDE"
should be "... in THIS area"...

just had to correct this :-)
Comment 7 Jaroslav Havlin 2012-03-26 08:38:14 UTC
I'm glad you like it.
Thank you very much for your feedback.