Skip to content

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

Open
othmar52 wants to merge 6 commits into
ArturSierzant:masterfrom
othmar52:paginated-playlist
Open

[IMPROVEMENT] added configurable limit to rendering of current playlist.#20
othmar52 wants to merge 6 commits into
ArturSierzant:masterfrom
othmar52:paginated-playlist

Conversation

@othmar52

@othmar52 othmar52 commented Dec 5, 2016

Copy link
Copy Markdown
Contributor

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