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 258066

Summary: More than 5s Codecompletion for simple code completions
Product: java Reporter: markiewb
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the issue - screenshot
Selfsampler snapshot
Another sampling

Description markiewb 2016-02-19 15:33:12 UTC
Created attachment 158571 [details]
Shows the issue - screenshot

I have a project with many dependencies. When I call code completion on

public class Foo{
   public Set<IMasterData> allMDOs=new HashSet| //CC at |
}

then it takes 5s to present a tiny list of CC. 

I provide you a sampling snapshot and a screenshot, which shows that the time is spend in org.apache.lucene.search.BooleanScorer$BucketTable.
Comment 1 markiewb 2016-02-19 15:34:30 UTC
Created attachment 158572 [details]
Selfsampler snapshot
Comment 2 markiewb 2016-03-03 10:16:31 UTC
Created attachment 158724 [details]
Another sampling
Comment 3 Svata Dedic 2016-11-09 14:22:58 UTC
The self-sampler shows that the time is spent inside Lucene index search; the second sample shows a lot of time is spent in WinNTFileSystem.list - which could indicate some FS slowness also affecting Lucene performance.

Tomasi, could you advise ?