Skip to content
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

perf: Limiting the suggested binding to fix performance issue #6877

Merged
merged 1 commit into from Aug 14, 2023

Conversation

rahul3v
Copy link
Contributor

@rahul3v rahul3v commented Aug 13, 2023

Enhancing #6262
Limiting the suggested binding to fix performance issue, for now to 50 (as discussed)

Root cause problem : on selection of multiple shapes containing arrows, on movement it starts comparing for binding with each arrows to shapes, leads to performance issue; which we here limit it to 50

Fix : when more than 50 shapes selected we skip binding comparing

@vercel
Copy link

vercel bot commented Aug 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Aug 13, 2023 11:21am
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Aug 13, 2023 11:21am
1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Aug 13, 2023 11:21am

@rahul3v rahul3v changed the title Limiting the binding to fix performance issue Limiting the suggested binding to fix performance issue Aug 13, 2023
@rahul3v rahul3v changed the title Limiting the suggested binding to fix performance issue feat: Limiting the suggested binding to fix performance issue Aug 13, 2023
Limiting the binding to fix performance issue
@rahul3v rahul3v changed the title feat: Limiting the suggested binding to fix performance issue perf : Limiting the suggested binding to fix performance issue Aug 13, 2023
@rahul3v rahul3v changed the title perf : Limiting the suggested binding to fix performance issue perf: Limiting the suggested binding to fix performance issue Aug 13, 2023
@7flash
Copy link
Contributor

7flash commented Aug 13, 2023

Good idea, I have noticed an issue with arrows performance too and another optimization I thought of to skip rendering of arrows which have opacity=0 and locked=true

@dwelle
Copy link
Member

dwelle commented Aug 14, 2023

Thanks @rahul3v!

@dwelle dwelle merged commit c29f19a into excalidraw:master Aug 14, 2023
10 of 11 checks passed
@rahul3v rahul3v deleted the rahul3v-patch-1 branch August 22, 2023 05:06
alswl pushed a commit to alswl/excalidraw that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants