You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From some early investigation, several of the scroll notification events have no listeners if there is no scroll bar, which leads to 500/1000 element traversals and 2x-3x as many typechecks per frame on gallery Shrine/ mobile.
Even if we don't traverse the entire element tree, this still ends up quite expensive when scrolling. Consider the following chrome profile from devtools where we're spending ~30% CPU on notifications.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Feb 14, 2022
Even if we don't traverse the entire element tree, this still ends up quite expensive when scrolling. Consider the following chrome profile from devtools where we're spending ~30% CPU on notifications.
@kenzieschmoll @goderbauer
[-]Notifcation API will traverse entire Element tree if there are no listeners[/-][+]Notifcation API is expensive[/+]jonahwilliams commentedon Feb 14, 2022
Design doc in progress
github-actions commentedon Mar 15, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.