## Description This as part of eval v4 roadmap project#2 optimisation, over here we optimisate resetGlobalScope and the addNode operation in the updateDependencyMap function. The following are the optimisations: - resetWorkerGlobalScope changed library and keyword lookup from array to set, this is to reduce the time complexity. - triggering resetWorkerGlobalScope after the first return statement, to remove redundant calls when code returns early. - in makeParentsDependOnChild limiting the add operations getting triggered when the dependencies are the same. - Added a library accessor code to help in generating a set when required. Noticed a 15% reduction in webworker scripting for a customer's app. Limiting the addNode to only affected nodes in the dependencyMap will be handled in a separate PR. Fixes #32811 > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8782269083> > Commit: bcc890545851d9ba76beef4036fda98b9d50bd0e > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8782269083&attempt=2" target="_blank">Click here!</a> <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new testing for dependency handling in `DependencyMapUtils`. - Added a new Cypress test spec for ClientSide SettingsPane. - **Refactor** - Enhanced dependency management in `DependencyMapUtils` to prevent redundant dependencies. - Updated handling of JavaScript libraries in the evaluation workflow to improve performance and accuracy. - **Tests** - Expanded test coverage to ensure robust dependency management and JavaScript library handling. - **Documentation** - Updated existing summaries to reflect changes in JavaScript library management and test specifications. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| index.ts | ||
| lintService.ts | ||
| setupLinkingWorkerEnv.ts | ||
| updateJSLibraryGlobals.ts | ||