Description
I was noticing slowdown in superlist when the virtual keyboard opens on mobile in a document (more so on Android than on iOS).
After profiling, I noticed a lot of cpu time was spend in the FollowerLayer
from follow_the_leader, which is used to position the caret and handle.
I assume this is contributing to the slowdown, especially when the cursor moves during the keyboard animation and might be a target for optimization.
Here's a 1.7s profiler export from running the super_editor example on my Android phone, which includes opening the keyboard once.
dart_devtools_2023-10-27_17_51_06.034.json
Notably, 700ms out of the 1.7s are spent in the FollowerLayer. More than 10% of that is spent stringifying a Matrix4 for a log message that is then subsequently discarded.