Skip to content

perf(editor): Avoid deep watch on execution result data #15304

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

Merged
merged 1 commit into from
May 12, 2025

Conversation

autologie
Copy link
Contributor

@autologie autologie commented May 12, 2025

Summary

This PR improves canvas performance while executing a workflow that generates many runs by replacing deep watch on execution response with update timestamp.

The comparison below shows the difference in the main thread work.
For testing, I used a workflow that generates ~300 runs of nodes in a loop Loop__wait.json

Before After
Screenshot 2025-05-12 at 11 02 30 Screenshot 2025-05-12 at 11 01 28

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@autologie autologie changed the title perf(editor): Avoid deep watch execution result data perf(editor): Avoid deep watch on execution result data May 12, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mrge reviewed 3 files and found no issues. Review PR in mrge.io.

Copy link

codecov bot commented May 12, 2025

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...s/frontend/editor-ui/src/stores/workflows.store.ts 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label May 12, 2025
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🚀

Copy link
Contributor

✅ All Cypress E2E specs passed

@autologie autologie merged commit cd2e2dc into master May 12, 2025
51 checks passed
@autologie autologie deleted the perf-watch-execution-data branch May 12, 2025 15:01
@github-actions github-actions bot mentioned this pull request May 19, 2025
@janober
Copy link
Member

janober commented May 19, 2025

Got released with n8n@1.94.0

ozcangungor pushed a commit to ozcangungor/n8n that referenced this pull request May 25, 2025
Alexandero89 pushed a commit to Alexandero89/n8n that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants