slowlydev / f1-dash

A real-time F1 dashboard
https://f1-dash.com
GNU General Public License v3.0
411 stars 39 forks source link

perf(state-engine): introduce buffer high and low water marks #119

Closed simylein closed 3 days ago

simylein commented 6 days ago

This introduces a high and low water mark to the buffer in the state engine. The buffer fills to 1000, then gets cut down to 800, and fills up again. This improves performance because, once the buffer is full, cutting the buffer every time a new item is added is quite expensive and unnecessary. Please let me know what you think of this and if we could implement this.

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
f1-dash ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 5:46am