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 225837 - Structure scanner is sometimes called twice in one parsing cycle
Summary: Structure scanner is sometimes called twice in one parsing cycle
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-02-07 13:43 UTC by Petr Pisl
Modified: 2013-05-05 02:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-02-07 13:43:33 UTC
This is long issue. Some features are called twice during parsing cycle, which means that are counted one time more and we can save 50% of time in such cases. It's not regular but it's easy to reproduce. 

Just open an JS file and put a breakpoint into the JsStructureScanner.scan() method. Very often the scan method is called twice or even more time during one cycle.
Comment 1 Milutin Kristofic 2013-05-02 12:29:22 UTC
Better caching. It was cached per task (Breadcrumb, Navigation). Cache is now shared among tasks.
http://hg.netbeans.org/jet-main/rev/e6e7b709d824
Comment 2 Quality Engineering 2013-05-05 02:29:50 UTC
Integrated into 'main-golden', will be available in build *201305042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e6e7b709d824
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #225837 - Structure scanner is sometimes called twice in one parsing cycle