Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
master branch
Steps to reproduce
- Clone the repo
- Go to the example folder
- Start the example
- Open the performance tab of flutter dev tools
- Delete the example text
- Paste example + enter 1k times
- Click in a row and add one character
Expected results
A document with few thousand rows renders at least with 30 FPS when edited.
Actual results
I've tested with a linux desktop PC (AMD Ryzen 5 5600G). With 1k rows, it rendered in 30-60ms, with 2k rows in 60-80ms, with 4k rows in 100-120ms, with 8k it took 200-250ms. It is more or less exactly O(n). Which means that even when a user edits a document with 1k rows, it will generate a jank frame.
Additional Context
I think, having documents with 1k rows are not so rare in case of a rich text editor.
I've searched through the issues and I've found that in #997 it was already described. However, on master I cannot see the rasterization charts, but jank frames are still problematic.