Giter VIP home page Giter VIP logo

Comments (4)

ossareh avatar ossareh commented on July 17, 2024

Can you please give us more details about what you're doing, for example - what URL's are you hitting that you think are slow? Also what counts as slow? Also, why does speed matter? If it is affecting your UX you may want to find ways to start the request earlier or do it in the background. We can't suggest fixes without more details from you though.

from twitch-api.

Siakon avatar Siakon commented on July 17, 2024

I am querying all the registered streams in my site(for example i have an input form where people can put their stream id).
With the stream id i am running the following functions : http://pastie.org/4593068 to get the info of the stream and the status and then i out put all the streams in this page http://pastie.org/4593083 .

The amount of slow is big and sometimes i get the error : Fatal error: Maximum execution time of 30 seconds exceeded in .
I fixed it that in my local host through php.ini.

I thought of a cache method to run all the info i want in the background because this i would do if i was making java or C++ code but i dont know how i can do it here... If you have any ideas will be great!

from twitch-api.

ossareh avatar ossareh commented on July 17, 2024

Hi,

So it turns out that you're using our old API. Please use our new streams API as part of the twitch API, not the overloaded Justin TV api: https://github.com/justintv/Twitch-API/wiki/Streams-Resource

from twitch-api.

Siakon avatar Siakon commented on July 17, 2024

Thank you very much!

I actually replaced the old api with the new one you gave me and i parse all the work to cron jobs and the page is loading almost instantly!!

from twitch-api.

Related Issues (20)

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.