PromucFlow_constructor/app/client
Vemparala Surya Vamsi d7d59c63e4
chore: optimise sort when developing the dependencyMap (#40340)
## Description
In the sort comparator, we were repeatedly computing the lengths of the
paths for two nodes, which contributed approximately 0.87 seconds to the
LCP on a Windows machine. We've now optimized this by precomputing the
paths beforehand and then sorting the collection. This change has
reduced the time to around 70ms, effectively eliminating the redundant
computation.

Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!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/14592179498>
> Commit: d552730a6606b425a8ee33dbe7d8160e78cd0f80
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14592179498&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Tue, 22 Apr 2025 11:29:44 UTC
<!-- 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

- **Refactor**
- Improved internal sorting of dependency nodes for better performance
and maintainability. No visible changes to user functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-22 17:16:50 +05:30
..
.husky
.yarn
config fix: sourcemaps (#39301) 2025-02-16 20:05:50 +03:00
cypress ci: Fixing the page actions spec (#40328) 2025-04-22 11:35:14 +05:30
docker/templates
generators
packages fix: Updating the UX for hidden pages (#40322) 2025-04-21 08:31:20 +00:00
public chore: add maximum-scale to avoid zoom on inputs in iOS (#40171) 2025-04-08 19:16:31 +05:30
scripts chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
src chore: optimise sort when developing the dependencyMap (#40340) 2025-04-22 17:16:50 +05:30
test chore: Removing feature flag for app IDE new entity explorer (#39912) 2025-04-03 12:07:24 +05:30
typings
.babelrc chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json
.eslintrc.js
.fork-ts-checkerrc
.gitignore
.lintstagedrc.json
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml
build.sh fix: sourcemaps (#39301) 2025-02-16 20:05:50 +03:00
cypress_ci_custom.config.ts
cypress_ci_hosted.config.ts
cypress_ci.config.ts
cypress-add-tags.js
cypress.config.ts
download-assets.js
jest.config.js
knip.json chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
package.json fix: storybook build and small improvements for stories (#39936) 2025-03-26 18:04:30 +03:00
README.md
README.old.md
start-caddy.sh
start-https.sh chore: convert consolidated api etag to a weak one (#38939) 2025-01-31 16:35:20 +05:30
tailwind.config.js
tsconfig.json
tsconfig.path.json
vercel.json
yarn.lock chore: ab test simple git reset in git status api (#39959) 2025-04-01 21:36:08 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide