Code Monkey home page Code Monkey logo

Comments (1)

rootshellz avatar rootshellz commented on September 26, 2024

Hi Chris,

Have you pulled the code recently? About a month ago, I implemented some caching related to checking the existing playlists: a844402. This significantly speeds up the tool, you should see if this helps in your situation.

I will look in to some further caching and performance improvements. Your idea of caching matched songs across runs is worth looking in to, but I think a better approach might be to simply check the existing playlist for the genre first, before matching songs, and then not trying to find / match songs that are already in the playlist. (e.g. The first check for a match can be against the existing songs in the playlist.)

The idea of multithreading is also good, however, a major issue I see is random timeouts from the Spotify API. These currently plague my runs of the tool and I imagine other users are impacted too. I'm not sure if this is related to Spotify rate limits or filtering of some sort, unexpected temporal issues on the Spotify side, or some other networking issue. I did notice that the caching fix mentioned above seemed to help this, although it might just be a case of seeing fewer timeouts given far fewer API calls. I need to troubleshoot this further before speeding things up, otherwise I imagine it will just speed up the occurrences of the errors.

from beatporter.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.