Chris2011 commented on pull request #2438:
URL: https://github.com/apache/netbeans/pull/2438#issuecomment-706745496


   what is a "normal" js user? If you use npm you install your dep and it 
installs more deps, etc. The other 4 projects are not that big but still have > 
20k files inside of it and those are normal JS projects created with Vue CLI or 
Angular CLI etc. So some other people complained about that in Stack Overflow 
too "How can I prevent node_modules from indexing in NetBeans". And as I said, 
why does WebStorm not has this problem with JS parsing?
   
   > I can explain why indexing in netbeans is slow: Because the JS indexer 
tries to deal with the mess, that is the JS ecosystem. The JS files are parsed 
in context and that is a dramatic slowdown.
   
   Just in NetBeans, not in any other major IDEs/Editor. I tried it couple of 
minutes ago with WebStorm, the result is significant and this is what I expect 
for NetBeans too. WebStorm also indexes the node_modules folder as I can see, 
when I open a web project, what my company project was. So as I understand it 
right, just the JS parser in NetBeans is slow and not a JS parser in general.
   
   Anyway, thx for the hint with the indexing we can revert it, but we need a 
solution for that. Here again:
   
   * Make the JS paraser as fast as possible to make it comparable with other 
major IDEs. 2h is to long and it is even possible.
   * Just index the packages from the package.json and bower.json because those 
are the packages that are used via require() and import
   * Make the indexing in NetBeans as fast as possible and take a look into the 
everything tool.
   
   Yes I can understand that not just indexing, but also parsing is done here. 
So everything could be just a hint for indexing and not for parsing.


----------------------------------------------------------------
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.

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