andrewrk / andrewrk/groovebasin

client: speed up filter searching

Open
#164 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
2k
Forks
119
PR merge metrics
No merged PRs in 30d

Description

For large libraries it takes a long time to populate the library index information. This is exacerbated by the fact that audio stream playback is done in the same thread as JavaScript, so slow filter queries can cause audio skips and glitches.

Ideas to speed this up include:
- [x] putting a short delay on the filter box so that we don't queue up more than 1 filter when keys are pressed while already filtering
- [x] updating DOM elements instead of deleting and recreating them
- [ ] using the audit feature of chrome to see where most time is spent
- [ ] not rebuilding the entire library index for a single change; ability to update the library index one song at a time
- [ ] when > N items are matched by a given filter query abort the query early

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.