0003126: performance improvements

Discussion in 'Bugtracker Feed' started by MediaPortal-Bot, November 3, 2010.

  1. MediaPortal-Bot

    MediaPortal-Bot Worlds greatest bot!

    Joined:
    March 26, 2007
    Messages:
    3,715
    Likes Received:
    90
    Ratings:
    +93 / 0
    Home Country:
    Germany Germany
    https://forum.team-mediaportal.com/mediaportal-releases-315/various-performance-improvements-87676/ [^]

    It takes numerous seconds to enter myRecTv screen when dealing with many recordings.

    I did some detective work along with redgate ANT performance profiler.
    More specifically the various "File.Exists" call where the culprit.

    I started introducing a caching dictionary to the static helper class:
    Util.GetCoverArt

    This would help remove the expensive File.Exists calls

    What it does is simle.
    If it stumbles upon a file that isn't part of the dictionary it then does a file.exists and then adds it to the dictionary.
    The next time a call to Util.GetCoverArt is done with the same filename lookup is done, then the dictionary will be able to reply back much faster than doing disk IO.

    This has a huge performance impact when looking up coverart on many files.

    Various other optimizations were also done with the help by Inker.
    hashset's introduced where needed, LinQ, compiled regexp. etc.

    http://mantis.team-mediaportal.com/view.php?id=3126

    Open the issue in Mantis...


     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!