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 227376 - big CPU usage after building a C++ project in MakeLogicalViewProvider.refreshBrokenItems
Summary: big CPU usage after building a C++ project in MakeLogicalViewProvider.refresh...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 18:08 UTC by Vladimir Voskresensky
Modified: 2013-05-17 09:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (7.36 KB, patch)
2013-05-14 16:17 UTC, Andrew Krasny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2013-03-12 18:08:07 UTC
MakeLogicalViewProvider.refreshBrokenItems instantiate all nodes under root even in closed folders each time after build from IDE at least one more level down. It cause huge CPU consumption for no reason.
See http://netbeans.org/bugzilla/attachment.cgi?id=132149
Comment 1 Vladimir Voskresensky 2013-03-12 18:10:29 UTC
create LexYac, put tracing in refreshBrokenItemsImpl(Node root) and observe expanding of invisible nodes
Comment 2 Andrew Krasny 2013-05-14 16:17:39 UTC
Created attachment 134437 [details]
Proposed patch
Comment 3 Andrew Krasny 2013-05-15 11:21:44 UTC
http://hg.netbeans.org/cnd-main/rev/c6c832455be3
Comment 4 Quality Engineering 2013-05-17 09:54:27 UTC
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c6c832455be3
User: Andrew Krasny <akrasny@netbeans.org>
Log: Bug#227376 - big CPU usage after building a C++ project in MakeLogicalViewProvider.refreshBrokenItems