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 269313 - Sometimes codecompletion seems to hit a low and get really really slow
Summary: Sometimes codecompletion seems to hit a low and get really really slow
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-12 21:08 UTC by akobberup
Modified: 2017-06-06 10:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
.npss file attached from NetBeans (140.54 KB, application/x-npss)
2016-12-12 21:09 UTC, akobberup
Details
.npss file attached from NetBeans (177.04 KB, application/x-npss)
2016-12-12 21:50 UTC, akobberup
Details
.npss file attached from NetBeans (244.97 KB, application/x-npss)
2016-12-16 09:35 UTC, akobberup
Details
.npss file attached from NetBeans (198.47 KB, application/x-npss)
2016-12-21 08:19 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2016-12-12 21:08:13 UTC
In nb 8.2 (and dev builds) codecompletion seems to run smooth for a while after start, until some unseen event and thereafter it slows down so instead of maybe max 1-2 seconds it will take near 10 seconds for a simple completion.
Comment 1 akobberup 2016-12-12 21:09:21 UTC
Created attachment 163212 [details]
.npss file attached from NetBeans

.npss file
Comment 2 akobberup 2016-12-12 21:50:38 UTC
Created attachment 163213 [details]
.npss file attached from NetBeans

.npss file
Comment 3 akobberup 2016-12-12 21:52:22 UTC
In the second attached snapshot, i tried to use codecompletion on a constructor of a class within the same package as the class i were editing. I even had the file open in the editor.
I also cleared the nb cache dir to ensure that all indexes were new (it had finished scanning when i took the snapshot)
Comment 4 akobberup 2016-12-16 09:35:46 UTC
Created attachment 163259 [details]
.npss file attached from NetBeans

.npss file
Comment 5 akobberup 2016-12-21 08:19:54 UTC
Created attachment 163285 [details]
.npss file attached from NetBeans

.npss file
Comment 6 akobberup 2016-12-21 08:46:40 UTC
I do not know the inner workings of the codecompletion/refactorings in netbeans, but it seems that when this happens, no refactorings or codecompletions works. 

So for example if i try a codecompletion and nothing happens for 5 seconds and i get impatient and cancels the codecompletion (clicking somewhere else or clicking esc), and then for example try to use a code template by typing "pf" and hitting tab to inflate the template to "private final" this also stalls for a while..

So my guess is that when trying to do a codecomplete, the task that get startet to find the eligible choices for cc will keep running, and any subsequent action in the editor (using cc, code templates, refactorings ect) will wait until the task has finished.