Accelerate playlist viewing (2 Viewers)

horned_reaper

Test Group
  • Team MediaPortal
  • January 7, 2011
    1,173
    415
    Munich
    Home Country
    Germany Germany
    Started on: 2021-03-23
    last update: 2021-03-23

    Summary: The display of playlists takes long

    Area: Music

    Description:
    To randomly play all about 24000 songs of my media database I use a single playlist.
    The creation of this playlist containing all songs works fast.
    But the opening (display) of the playlist takes about 15 minutes. During this time the page counter is slowly counted up until 1,796.
    Negative side-effect: Since a created/updated playlist cannot be saved until it is completely shown, the user needs to wait a long time.

    Is there a way to optimize the playlist loading? Can it be processed pagewise, when scrolling through the playlist items? Or is it possible to cache track data or to use the MP database to reduce the loading time?
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,147
    2,394
    Nuenen
    Home Country
    Netherlands Netherlands
    Here it's exactly the other way around...
    with almost 5000 entries creating the playlist takes over 3 minutes (taking a long time in all the calls to
    Code:
    UNCFileFolderExists: Folder'... exists!
    UNCTools: AsyncDNSReverseLookup: ip ... resolved for host ... in 305.0175 ms
    called for every folder and subfolder.
    however when I load it it's under a minute (even without the fix for MP1-5053 as mentioned here Next/previous track actions take very long since update to MP 1.27)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,147
    2,394
    Nuenen
    Home Country
    Netherlands Netherlands
    that it is fast at my end
    I do note some short freezes of MP, but (at least I) would expect that with such a large playlist
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,173
    415
    Munich
    Home Country
    Germany Germany
    Hmm, I processed about 24000 songs - about five times than 5000. This makes the difference to your test result.
    Now I've added this information to the initial description.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,147
    2,394
    Nuenen
    Home Country
    Netherlands Netherlands
    can you give me 2 debug logs: one from creating a large (doesn't need to be 24000) playlist and one wher you load that list?
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,147
    2,394
    Nuenen
    Home Country
    Netherlands Netherlands
    I manage to cut it down a bit but still not really fast.
    Apparently when loading the playlist every item is scanned for tags, and on top of that, when populating the list to be shown in mediaportal also scanned every item... (although that last one is only done when the item is not in the musicdatabase)
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,173
    415
    Munich
    Home Country
    Germany Germany
    Is it possible load only the data which is required to display the playlist?

    The M3U file contains the media file path, the artist name and the title name e. g.:
    Code:
    #EXTINF:0,17. Joe Cocker - Unchain My Heart
    D:\Audio\Musik\Alben\Joe Cocker\Greatest Hits\17. Joe Cocker - Unchain My Heart.flac

    If this information would be used to load the playlist, the processing would be much faster.
    At least, the MP database data should be preferred instead of scanning file tags which is much slower.
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    Since the update to MediaPortal 1.27 it takes about three seconds to jump to the next or previous track. Also adding files and...
    Replies
    11
    Views
    2K
    • Sticky
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many things were not intuitive, too frumpy and the gui had hardcoded dependencies to plug-ins, some buttons didn’t work even without a note due to that. Same for player controls, why do I see always play and pause...
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many...
    We are proud to present MediaPortal 2.4 MediaPortal 2.4 is a full-blown media center software that addresses most common user...
    Replies
    4
    Views
    585
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the DefaultWide skin. It really messes up the overlays though.
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the...
    For the past year or so I have not been able to get into my TV recordings menu. MediaPortal wont crash, but it just hangs and...
    Replies
    1
    Views
    709
    That's awesome news! I can't say how I'm happy to help fellow XP user :D
    That's awesome news! I can't say how I'm happy to help fellow XP user :D
    Ok, I’m back, MP1.14 has been working great for the last few years, up until last month when a recording overwrote the hard drive...
    Replies
    18
    Views
    2K
    MP1 MP2 Help with subtitles DE
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible). Current video codecs are: - LAV Video for all formats (except HVEC using Lentoid), with DXVA native decoding - LAV Splitter Source - LAV Audio - MPAR as audio renderer - EVR as video renderer (not enough...
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible)...
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible)...
    Replies
    0
    Views
    3K
    Top Bottom