Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVEMENT] added configurable limit to rendering of current playlist. #20

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

othmar52
Copy link
Contributor

@othmar52 othmar52 commented Dec 5, 2016

Previously there wasn't any limit which caused browsers to freeze while trying to render ten thousands of tracks. Especially the javascript event-listeners were not able to handle such a big DOM besides the fact that there is no benefit at all to display that much stuff.

In case the total playlist length is shorter than the configured limit there is no visually change of O!MPD at all. Otherwise i have added a message like (showing 943-1443 of 23515 Tracks) on top of the playlist

TODO: a pagination would make sense but its not that important because the currently played track should always be visible within the rendered portion of tracks

instead of processing the whole music collection within on mysql-fetch-loop smaller
batchsizes gets processed. now there is NO(!!!) memory growth within importer-phase
fileInfo() at all.
Unfortunately the memory-usage of the previous importer-phase (fileStructure) is
still a problematic starting point for fileInfo()

further some massive code-cleanup regarding tag-processing had been done.
TODO: make use of the new tag-processing where needed to remove duplicate code-mess
TODO: refactoring fileStructure() in terms of memory consumption
Previously there wasn't any limit which caused browsers to freeze while
trying to render ten thousands of tracks. The javascript event-listeners
were not able to handle such a big DOM.

In case the total playlist length is shorter than the configured limit
there is no visually change of O!MPD at all.
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