pangeachat / client

Learn a language while texting your friends
https://krille-chan.github.io/fluffychat/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Performance things to investigate #485

Closed wcjord closed 1 week ago

wcjord commented 1 month ago
wcjord commented 1 month ago

@ggurdin for you to add to and maybe take notes on here

ggurdin commented 1 month ago
Screenshot 2024-07-17 at 3 35 49 PM

From heap snapshot in chrome memory tab after login. Took three snapshots, the first before login, the second immediately after login, and the 3rd a few seconds later.

The variable shown here (with the greatest increase in heap size between the 2nd and 3rd snapshots) seems to be a list of events.

ggurdin commented 1 month ago

The object with the next largest amount of allocated space is a list of events. The next highest is a map, but I'm not sure exactly what it's a map of. Here's a screenshot of some of its contents:

Screenshot 2024-07-17 at 3 43 05 PM
ggurdin commented 1 month ago

Next is a list of choreo record steps:

Screenshot 2024-07-17 at 3 44 33 PM
wcjord commented 1 month ago

Most of those are token events no?

ggurdin commented 1 month ago

Yes, looks like it

ggurdin commented 1 month ago
Screenshot 2024-07-17 at 4 29 03 PM Screenshot 2024-07-17 at 4 33 45 PM Screenshot 2024-07-17 at 4 36 18 PM
ggurdin commented 1 month ago

From dart devtools on my android device. First one is a test account, others are from Will's prod account

ggurdin commented 1 month ago

Screenshots from class on 7/17. Timelines seem to be continually created but not garbage collected:

Screenshot 2024-07-17 at 5 14 19 PM Screenshot 2024-07-17 at 5 17 24 PM Screenshot 2024-07-17 at 5 22 57 PM
wcjord commented 1 week ago

I'm going to close this general ticket. We can open more specific performance-related issues as we identify them.