matthiasblaesing opened a new pull request, #4324:
URL: https://github.com/apache/netbeans/pull/4324

   While analysing this it was found, that the GsfParserFactory#createParser
   returned null as the parser for snapshots. Looking deeper, showed, that
   the #createParser method was invoked with snapshots of differing mimetypes.
   
   This works, but is a violation of the contract in ParserFactory#createParser:
   
   > It is guaranteed that all snapshots in the collection will be
   > of the same mime type and it will be the mime type, which this factory
   > was registered for (ie. in MimeLookup)
   
   If the snapshots are inconsistent, parsing still works, but its performance
   suffers. To fix this the call to ParserManager#parse in RepositoryUpdater
   is split. The scanned sources are grouped by their mimepath and each group
   is individually passed.
   
   The observed improvements are:
   
   
   Indexing Variant 1 (tour-of-heroes)
   
   Before: ~125s
   After:  ~105s
   
   Indexing Variant 2 (tour-of-heros with Indexability Filter)
   
   Before: ~52s
   After:  ~38s
   
   The Indexability Filter blocks scanning for all paths with paths containing
   node_modules and where the indexer is in the list: js, angular, requirejs,
   knockoutjs, TLIndexer, tests.
   
   
   
   
   
   ---
   **^Add meaningful description above**
   
   By opening a pull request you confirm that, unless explicitly stated 
otherwise, the changes -
   
    - are all your own work, and you have the right to contribute them.
    - are contributed solely under the terms and conditions of the Apache 
License 2.0 (see section 5 of the license for more information).
   
   Please make sure (eg. `git log`) that all commits have a valid name and 
email address for you in the Author field.
   
   If you're a first time contributor, see the Contributing guidelines for more 
information.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to