-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: changed evaluateTree to use klonaJSON #37976
Conversation
WalkthroughThe pull request introduces a modification to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (2)app/client/src/workers/Evaluation/__tests__/evaluation.test.ts (2)
The new mock for
The test expectations show a reduction in Also applies to: 1118-1119 ✅ Verification successfulLet me search for the implementation changes to verify the performance claims. Performance improvement claim is verified The test expectations accurately reflect the optimization changes:
This aligns with the claimed 33% reduction in scripting time by using the more efficient JSON-specific cloning where appropriate. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the performance impact by checking the implementation changes
# Test: Search for klona usage changes in the codebase
rg -A 2 "klona\(" --type ts
Length of output: 24670 Script: #!/bin/bash
# Search for the implementation changes related to klona usage
rg -B 5 -A 5 "klonaJson" --type ts
Length of output: 4937 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12196375446. |
Deploy-Preview-URL: https://ce-37976.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12223082327. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Changed from klona to klonaJson since we have seen that evalAndValidateFirstTree we are already performing klonaJSON which serialised all non primitive dataTypes. So the subsequent evaluations do not need to perform a full klona. We are seeing a 33% reduction in klona scripting time in the webworker.
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
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12203855439
Commit: 326c1df
Cypress dashboard.
Tags: @tag.All
Spec:
The following are new failures, please fix them before merging the PR:
Sat, 07 Dec 2024 06:06:30 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Summary by CodeRabbit