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
unreads [nfc]: Use for/in style instead of forEach
Sometimes we get feedback from a lint rule --
https://dart.dev/tools/linter-rules/avoid_function_literals_in_foreach_calls
-- whose documentation recommends using for loops instead of
forEach.
That rule didn't fire on these instances; shrug; but this file has
had a mix of for loops and forEach loops, and it seems nicer to
consistently use one or the other.
Just in case there was a performance bug in a Map.forEach
implementation, I tested mark-as-read (by scrolling through the web
app) to see if we might get a free performance benefit there, where
the norm on my device (with a profile build) has been to take about
14ms per event:
zulip#304 (comment)
But, unsurprisingly, it stayed at around 14ms as before.
0 commit comments