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 243968

Summary: CodeCompletion took 3591 ms.[createPreprocHandlerFromState() called from EDT by ViewItemNode.isExcluded())
Product: cnd Reporter: kosmonaffft
Component: Code ModelAssignee: issues@cnd <issues>
Status: CLOSED DUPLICATE    
Severity: normal CC: martin_seetzen
Priority: P3 Keywords: PERFORMANCE
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 183748
Attachments: nps snapshot

Description kosmonaffft 2014-04-21 17:53:58 UTC
This issue was reported manually by kosmonaffft.
It already has 7 duplicates 


Build: NetBeans IDE Dev (Build 201404210001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 8

User Comments:
kosmonaFFFt: Invoke completion.

kosmonaFFFt: Work as usual...

kosmonaFFFt: Work as usual...

martin_seetzen: Debugging using gdb (C++) on a remote machine.
Added a variable as a new watch.



Maximum slowness yet reported was 62873 ms, average is 12281
Comment 1 kosmonaffft 2014-04-21 17:54:00 UTC
Created attachment 146861 [details]
nps snapshot
Comment 2 Vladimir Voskresensky 2014-11-19 12:58:53 UTC
org.netbeans.modules.cnd.makeproject.ui.ViewItemNode.isExcluded()	95.05023	12,325 ms (95.1%)	6,295 ms

org.netbeans.modules.cnd.model.services.CsmCodeAssistanceProvider.hasCodeAssistance()	95.05023	12,325 ms (95.1%)	6,295 ms

calls org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.findFile()	95.05023	12,325 ms (95.1%)	6,295 ms

which does very intensive #include walk from 
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.createPreprocHandlerFromState()	95.05023	12,325 ms (95.1%)	6,295 ms
Comment 3 Vladimir Voskresensky 2014-11-19 13:00:04 UTC

*** This bug has been marked as a duplicate of bug 244894 ***