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 244998 - Go to symbol is slow when code model is not loaded in memory
Summary: Go to symbol is slow when code model is not loaded in memory
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-11 09:54 UTC by Alexander Simon
Modified: 2014-06-12 06:39 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 Alexander Simon 2014-06-11 09:54:08 UTC
My steps are:
- several java and c++ projects are open.
- invoke go to symbol which is occurred in both type of projects.

Automatic profiling reports is reported:
http://statistics.netbeans.org/analytics/exception.do?id=727607
It is connected to bug #177274. But analyzing shows that C/C++ is responsible for this slowness.
Comment 1 Alexander Simon 2014-06-11 09:56:54 UTC
Problem in iterating class members.
The iterator does not use name filter for filtering methods and variables.
As result IDE read a lot of unneeded members.
Comment 2 Alexander Simon 2014-06-11 10:21:56 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/03fa3725a819

My use case was LLVM project:
- Open IDE with opened project (it guarantees that minimal part of code model is loaded in memory).
- wait finishing loading, scanning and other background process.
- Go To symbol.

Result appeared in 4 times earlier (after about 2 seconds).
Profiling shows that number of reading from repository are changed from 137K to 21K calls of RepositoryUtils.get(Key).
Comment 3 Alexander Simon 2014-06-11 10:27:12 UTC
Vladimir K., could you conform that your issue was fixed?
Comment 4 Quality Engineering 2014-06-12 06:39:59 UTC
Integrated into 'main-silver', will be available in build *201406120533* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/03fa3725a819
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244998 Go to symbol is slow when code model is not loaded in memory