fix: performance improvements for js editor#21492
Conversation
|
/ok-to-test |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4439136669. |
|
/ok-to-test |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4439239008. |
There was a problem hiding this comment.
Existing file split up,
No changes here.
There was a problem hiding this comment.
existing file split + changes.
Change commit here.
|
/ok-to-test |
|
/build-deploy-preview |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4465273258. |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4465274178. |
|
/build-deploy-preview env=release |
|
/ok-to-test |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4465549318. |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4465550932. |
|
The following are new failures, please fix them before merging the PR: |
|
Deploy-Preview-URL: https://appsmith-fhn25mls9-get-appsmith.vercel.app |
|
The following are new failures, please fix them before merging the PR:
|
|
Pending QA verification. |
|
Tested this on the DP url, working as expected. |
## Description Fixes `Command_Click_Navigation_spec` Not sure why the [original PR](#21492) passed though. ([Test run](https://github.com/appsmithorg/appsmith/actions/runs/4465550932))
Description
TL;DR performance improvements for js editor
addThisReferencewas creating a new object everytime)getJSCollectionsinstead ofgetJSCollectionsForCurrentPage, which created a new object everytime, even if actions were not updated)Note: once a js object is saved, it's still going to trigger a whole file clear and marking.
Because, it's an entity update which needs a whole refresh of the markers.
Fixes #21467
Media
Case: Adding a blank space in js editor.
Reduced un-necessary clears and marks:
Before:
####After:

Reduced entity marker called count:
https://www.loom.com/share/23719f8dfde8457ea0a86f44500ec34a
Reduced markers count:
Before:
After:
Type of change
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity: