Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaM is taking a very long time to load on ChromeOS and Android #224

Open
oliver-phet opened this issue Mar 2, 2021 · 7 comments
Open

BaM is taking a very long time to load on ChromeOS and Android #224

oliver-phet opened this issue Mar 2, 2021 · 7 comments
Assignees

Comments

@oliver-phet
Copy link

oliver-phet commented Mar 2, 2021

@mattpen found that on his Android and Chromebook devices, BaM takes quite a while to load. Android phone ~20 seconds. Chromebook ~10 seconds.
@KatieWoe can you describe the devices you have tested BaM and note their load performance:

Device and OS Version Load time
Device 1 Load time 1
Device 2 Load time 2
@KatieWoe
Copy link
Contributor

KatieWoe commented Mar 2, 2021

Used published for this

Device and OS Version Load time
Win 10 Chrome 5.39 sec
Win 10 Firefox 4 sec
Mac 11 Safari 3.66 sec
iPad 14 5.7 sec
ChromeOS 31 sec
Android Tablet 43.25 sec

@mattpen mattpen removed their assignment Mar 2, 2021
@mattpen
Copy link

mattpen commented Mar 2, 2021

Assigning to @jonathanolson since he is the responsible dev for build-a-molecule.

@mattpen mattpen assigned jonathanolson and unassigned KatieWoe Mar 2, 2021
@oliver-phet oliver-phet changed the title BaM is taking a very long time to load on multiple platform BaM is taking a very long time to load on ChromeOS and Android Mar 2, 2021
@jonathanolson
Copy link
Contributor

This is partially expected, it has to load a LOT of data. @oliver-phet, any preferences on the balance between load-time of the sim and download size? At a certain level there's a tradeoff, but I could take a look into optimizing things (I'm sure I could help improve things).

@oliver-phet
Copy link
Author

@jonathanolson do you have a perspective on why the sim takes so much longer to load on Android and Chrome specifically? When I load the sim on my iPhone (in our iOS app or mobile safari) the sim only takes ~3 seconds to load. I appreciate the tradeoff between load-time and download size, but it is surprising that those two platforms are experiencing such long load times.

@jonathanolson
Copy link
Contributor

do you have a perspective on why the sim takes so much longer to load on Android and Chrome specifically?

I'm not sure. It's a very specific CPU task that allocates a lot of memory. It's probably fairly dependent on the CPU and memory, and heavily dependent on browser optimizations and GC.

@jonathanolson
Copy link
Contributor

I could profile it presumably to see why this might be happening?

@jonathanolson jonathanolson removed their assignment Mar 22, 2021
@oliver-phet
Copy link
Author

Yes, @jonathanolson profiling sounds like the next best step! This would be good to diagnose before our next Chromebook app goes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants