Skip to content

perf(android): optimize seekbar sync and filter out trivial media progress updates#115

Merged
sameerasw merged 1 commit into
sameerasw:developfrom
Mudit200408:seekbar-sync-perf
Jun 4, 2026
Merged

perf(android): optimize seekbar sync and filter out trivial media progress updates#115
sameerasw merged 1 commit into
sameerasw:developfrom
Mudit200408:seekbar-sync-perf

Conversation

@Mudit200408
Copy link
Copy Markdown
Contributor

  • Implement hasSignificantMediaChange() to perform deep metadata comparisons (playback state, title, artist, album art, buffering state, like status, and track duration).
  • Ignore minor progress elapsed time ticks during comparison to eliminate the CPU-intensive, every-second WebSocket synchronization loop.
  • Significantly reduce battery consumption, CPU overhead, and WebSocket network payloads on the Android client.

…gress updates

- Implement `hasSignificantMediaChange()` to perform deep metadata comparisons (playback state, title, artist, album art, buffering state, like status, and track duration).
- Ignore minor progress elapsed time ticks during comparison to eliminate the CPU-intensive, every-second WebSocket synchronization loop.
- Significantly reduce battery consumption, CPU overhead, and WebSocket network payloads on the Android client.
@Mudit200408
Copy link
Copy Markdown
Contributor Author

Hey, can u check this PR as seekbar changes are being spammed without this

@sameerasw sameerasw added the enhancement New feature or request label Jun 4, 2026
@sameerasw sameerasw merged commit 1dff9d8 into sameerasw:develop Jun 4, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in AirSync Features and Bugs Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants