TaskList indexer 10%. The regex seems to be expensive. Either try to minimize the overhead or change the scope to file.
One performance upgrade - reduce number of calls Scope.isInScope() method.
Created attachment 115836 [details]
The patch speeds up scanning of Tasks ('TODOs'), before was patched, opening web.jsf NBM took 10.3% whole scanning time. After applying the patch scanning of Tasks takes only 0.1%. I propose apply the patch as it's and solve open issues of future of Tasks window after that. Thanks Honzo for the your patch. Any comments?
Honzo, please go ahead and integrate the patch into trunk. Thanks
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jan Peska <firstname.lastname@example.org>
Log: Issue #206026 - Task list indexer slow down indexing by 10%
default scope changed, indexing of the CurrentEditorScanningScope changed