buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 24 forks source link

Open games page slow to render #2604

Open jl8e opened 4 years ago

jl8e commented 4 years ago

I can't tell if this is server or client side from where I am at the moment, but the Open Games page is taking on the order of eight seconds to render on this tablet. (Samsung Galaxy tab s, so kind of old, running Chrome)

There's a lot of open games at the moment (>100), but some profiling could be useful.

blackshadowshade commented 4 years ago

For me on my Mac Mini, it's loading in three seconds.

jl8e commented 4 years ago

That still seems kind of slow, but suggests client-side rendering issue, which is probably easier to optimize than if it were the db query.

jl8e commented 4 years ago

So, I just tried it on a desktop browser with debugging tools. (Firefox, which I'm not familiar with yet.)

Four post requests: One that took 40 ms, then three launched simultaneously, taking 106, 180, and 1531 ms. The big one is almost entirely wait time. If render time is measured, it doesn't seem to be done here, but that's a pretty significant wait time on its own.

There's a performance recorder and breakdown, but it's got a lot of data I don't have time to figure out right now.

blackshadowshade commented 4 years ago

Actually, right at the moment, I'm seeing general performance issues across the whole site, which is really odd. Are you seeing those too, Julian?

Edit: probably not a BM thing, probably something in my local area