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 204630 - CodeCompletion took 2003 ms.
Summary: CodeCompletion took 2003 ms.
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-11-03 14:46 UTC by Exceptions Reporter
Modified: 2016-07-07 07:16 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178524


Attachments
nps snapshot (27.05 KB, application/nps)
2011-11-03 14:46 UTC, Exceptions Reporter
Details
nps snapshot (72.38 KB, application/nps)
2011-11-03 21:45 UTC, tnleeuw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-11-03 14:46:28 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109252201)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
arittner: CodeCompletion with Lookup.getDefault

tnleeuw: Typed 'sessionFactory.get'; that quickly resulted in a list of possible completiond.
Then added 'Cur' to select the completion 'getCurrentSession()' and that's what took so long.



Maximum slowness yet reported was 23359 ms, average is 8502
Comment 1 Exceptions Reporter 2011-11-03 14:46:32 UTC
Created attachment 112783 [details]
nps snapshot
Comment 2 tnleeuw 2011-11-03 21:45:28 UTC
Created attachment 112807 [details]
nps snapshot
Comment 3 Milos Kleint 2013-01-09 12:39:08 UTC
it appears that the J2seLogicalViewProvider should not call initListeners() -> addLinbraryManagerListener() which can hang on synchronization
Comment 4 Tomas Zezula 2013-01-09 17:45:57 UTC
In reply to comment #3, probably in wrong issue.
There is no call to initListeners() in the snapshot, also the CC thread is not blocked by any lock.
The problem is in J2SELibrarySOurceForBinaryQuery listing project library managers.
Comment 5 Martin Balin 2016-07-07 07:16:54 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss