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: | CodeCompletion took 14148 ms. | ||
---|---|---|---|
Product: | cnd | Reporter: | stiffuser |
Component: | Code Completion | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | anba, gorrus, jtulach, mmirilovic, PrakharMathur, stiffuser, vladdraco |
Priority: | P2 | Keywords: | PERFORMANCE |
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 179087 |
Attachments: |
nps snapshot
nps snapshot nps snapshot |
Description
stiffuser
2011-09-16 17:12:18 UTC
Created attachment 110824 [details]
nps snapshot
completion is waiting for file to be parsed. Created attachment 110921 [details]
nps snapshot
Operations with filesystem takes a lot. I guess NetBeans does not have enough memory. Setting of -J-Xmx and -J-XX:PermSize could help. there are serveral snapshots with problems SEVERE [org.openide.util.Exceptions] java.net.URISyntaxException: Illegal character in path at index 0: INFO [cnd.logger]: Calling Parser in UI Thread java.lang.Exception: Calling Parser in UI Thread at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:197) at org.netbeans.modules.cnd.modelimpl.csm.deep.LazyStatementImpl.createStatements(LazyStatementImpl.java:102) at org.netbeans.modules.cnd.modelimpl.csm.deep.LazyStatementImpl.getStatements(LazyStatementImpl.java:85) Created attachment 112223 [details]
nps snapshot
I tried completing a local variable name and it took a lot of time.
Code Completion must be instantaneous. (In reply to comment #6) > Created an attachment (id=112223) [details] > nps snapshot > > I tried completing a local variable name and it took a lot of time. I need more info. - was it the case after IDE restart where project previously was already parsed? Or it was during parse of project? - were semantic highlighting already colored document (i.e. function names are in bold, fields are green, ...) https://netbeans.org/bugzilla/attachment.cgi?id=112223 in this snapshot IDE is reading from global ns members from repository Snapshots analysis shows that slowness has several reasons: - first use of completion (after restoring from repository) -- restoring from repository is lazy, so some objects are deserialized first time in completion query - completion query is waiting for one file to be parsed -- file has deep includes - completion query is visiting file and it's inclusions when inclusions are possibly have cycles due to symlinks structure Fix of this issues is risky in 7.1 timeframe I've separated logs. In this one I've left only related to repository. 1) Not enough memory, we recommend to give NB -J-Xmx1G 2) memory is OK, but few first usages of completion after opening IDE or project - repository is reading indexes into memory. *** This bug has been marked as a duplicate of bug 197297 *** |