-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try to improve the performance of rendering many empty paragraphs #44606
Conversation
Size Change: -104 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
1b78359
to
039286a
Compare
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.
The block select performance tests for #42722 showed:
- trunk: '103.58 ms'
- Allow dropping an image on an empty paragraph block to create an image block #42722: '477.16 ms'
And this PR is showing:
- trunk: '722.35 ms'
- Try to improve the performance of rendering many empty paragraphs #44606: '96.7 ms'
So it seems like this should return things to the level they were before.
It tests well too, so I'd be happy to see this merged and then it should be possible to verify the performance results when there's more data
Seems like this current approach won't work cause it will mark every paragraph element as a "drop zone", which somehow breaks the other drag-and-drop feature. I'll try to find out if there's another way. |
Is it because I guess it would still be possible to conditionally set the |
Made obsolete by #44647. |
What?
A follow-up to #42722 to improve the select performance when rendering a large number of empty paragraphs at the same time.
Why?
How?
Testing Instructions
Screenshots or screencast