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 177464

Summary: Javascript index does some computation even there is no javascript
Product: editor Reporter: Tomas Zezula <tzezula>
Component: Parsing & IndexingAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED FIXED    
Severity: normal CC: rmatous, tmysik
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 177274    

Description Tomas Zezula 2009-11-23 11:03:48 UTC
Part of umbrella issue #177274.
The Javascript index query takes nearly the same time as the java index even for apisupport projects where is no javascript.
Comment 1 Vitezslav Stejskal 2009-11-30 02:04:43 UTC
I'll have a look at this.
Comment 2 Vitezslav Stejskal 2009-11-30 10:23:51 UTC
QuerySupport initialization takes too long. I think we could add some sort of caching.
Comment 3 Vitezslav Stejskal 2009-12-01 07:27:05 UTC
http://hg.netbeans.org/jet-main/rev/72b27a5dbaf8
Comment 4 Vitezslav Stejskal 2009-12-01 10:18:53 UTC
http://hg.netbeans.org/jet-main/rev/d1d31024c803
Comment 5 Quality Engineering 2009-12-02 02:59:43 UTC
Integrated into 'main-golden', will be available in build *200912020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/72b27a5dbaf8
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #177464: caching IndexImpl instances for roots in order to avoid disk touches (FileSystem access) when initializing QuerySupport