Hi all, been working on a website that pretty frequently polls for data – the performance has gotten pretty bad recently, so been diving into the world of performance on web, and am still really new to this stuff.

I was playing around with the Performance tab in Chrome DevTools, and ran a recording, and saw this odd(?) looking timeline:

Post image

I poked around on some other websites, and no other websites had timelines that showed these big spikes in memory. Is this normal for a website that polls for data, or is something exceptional going on here?

FWIW, my current theory is that the large drops are when garbage collection runs, and when it does, it ends up taking a lot of CPU thus slowing down the app, but it’s a complete guess and no idea if thats how it works. And on a side note, let me know if you have any favorite resources to learn about this stuff!



Source link

Write A Comment