Skip to content

frontend: rendering optimizations#144

Merged
arl merged 10 commits intomainfrom
improve-frontend-rendering
Nov 18, 2025
Merged

frontend: rendering optimizations#144
arl merged 10 commits intomainfrom
improve-frontend-rendering

Conversation

@arl
Copy link
Owner

@arl arl commented Nov 16, 2025

Apply various performance optimizations to mitigate slowness on the frontend side, in particular with many plots points visible at the same time:

  • requestAnimationFrame-based throttling for plot
  • improve allocations in RingBuffer slicing
  • cache plot width caclulations
  • memoize GC vertical line shapes

An experient in downsampling was made but was not conclusive, overall since the implementation was flaky and the downsampling was not stable, so plots seemed to 'move' at each update. Probably once data is downsampled, it should remain downsampled.

@arl arl force-pushed the improve-frontend-rendering branch from e7b8f52 to fbd158a Compare November 17, 2025 09:57
@arl arl force-pushed the improve-frontend-rendering branch from fbd158a to db1e55b Compare November 17, 2025 22:04
@arl arl changed the title frontend: mitigate slowness, improve rendering frontend: rendering optimizations Nov 18, 2025
@arl arl merged commit 562f9ea into main Nov 18, 2025
10 checks passed
@arl arl deleted the improve-frontend-rendering branch November 18, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant