forcedotcom / lightning-language-server

LWC and Aura Language Servers - shipped as part of the Salesforce VSCode Extensions
https://forcedotcom.github.io/salesforcedx-vscode/
BSD 3-Clause "New" or "Revised" License
31 stars 48 forks source link

perf: improve time taken to init #568

Closed randi274 closed 1 year ago

randi274 commented 1 year ago

What does this PR do?

Performance enhancement to speed up initialization, particularly when working with large code bases. Tested locally, this has reduced the startup time for the extension from > 2 hours to around 2 minutes.

What issues does this PR fix or reference?

https://github.com/forcedotcom/salesforcedx-vscode/issues/4829

randi274 commented 1 year ago

Tested locally and confirmed stale components are still removed from the index during initialization of a project. I don't have a comparably large project to test with, but can confirm that regular projects work as expected. Our code coverage here is light, and since there's not a good spot to add additional coverage I think this is fine to merge and see if we notice improvements.