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.
Summary: | Slow CodeCompletion: waiting for parser [2680 ms] | ||
---|---|---|---|
Product: | cnd | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Code Completion | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | NEW --- | ||
Severity: | normal | CC: | crimcat, kosmonaffft, Pic, tbrunhoff, vercinstex, Zendal |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 191185 |
Attachments: |
nps snapshot
nps snapshot messages.log for the session with the long parse time. |
Description
Exceptions Reporter
2012-07-31 17:55:05 UTC
Created attachment 122598 [details]
nps snapshot
Created attachment 124648 [details]
nps snapshot
Both snapshots show that completion was mostly waiting until a file is parsed. Sorry, the previous comment wasn't precise enough Both snapshots show the following: 60-70% is spent in waiting for the current file parsing to complete The rest (30-40%) is spent in recursive headers traversal (see bug 221698) Parser stacks in snapshots differ: - the first one shows that most time is spent in deep header traversal, - the second one spends all the time in ParserQueue.handleLastProjectFile, which in turn calls FakeRegistrationWorker.fixFakeRegistration, which waits on a CountDownLatch. Not sure if this clarifies. My NB just filed http://statistics.netbeans.org/analytics/exception.do?id=674262 and it was exceptionally slow (I have a very fast machine). Restarting the IDE made it go away. The messages.log for that session is attached, and there were lots of interesting complaints at the end. Created attachment 135162 [details]
messages.log for the session with the long parse time.
Product Version: NetBeans IDE Dev (Build 201304212301) Updates: Updates available Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb) User directory: /home/toddb/.netbeans/dev Cache directory: /home/toddb/.cache/netbeans/dev 33 reports => P2 |