certinia / debug-log-analyzer

Salesforce Apex debug log analyzer for Visual Studio Code - Visualize code execution via a Flame chart and identify performance and SOQL/DML problems via Method and Database analysis
https://marketplace.visualstudio.com/items?itemName=financialforce.lana
BSD 3-Clause "New" or "Revised" License
82 stars 18 forks source link

perf: use code splitting for faster initial load #489

Closed lukecotter closed 6 months ago

lukecotter commented 6 months ago

Description

Splits som of the deps into separate js bundle files for faster load. This comes in two parts. On the vscode extension side and the log viewer side.

  1. @apexdevtools/apex-ls
  2. @apexdevtools/apex-parser
  3. antlr4ts

    @apexdevtools/apex-ls is only used when clicking on a link in the call tree to go to code, so can be loaded later.

    Initial load of the vscode extension is now ~6ms instead of ~100 ms. This means the webview is shown sooner and everything feels faster.

Type of change (check all applicable)

[optional] Any images / gifs / video

Related Tickets & Documents

Related Issue # fixes # resolves # closes #

Added tests?

Added to documentation?

[optional] Are there any post-deployment tasks we need to perform?