Giter Club home page Giter Club logo

Comments (18)

Jytesh avatar Jytesh commented on September 2, 2024 1

commit #2882270 fixed it, review and close issue @TheUltimateKeval @PsiAphex

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

It should work

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

Since the client instance is already in all the different scopes it would also reduce memory usage?

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

Its better if we implement these base reforms before extending its functionalities. And yes it'll help performance wise as well I guess.

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

Alright, you can assign yourself to the issue if you want to implement or I will do it tomorrow

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

I'll try to work on it but I'm still trying to get familiar with the code.

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

Updating cache is also a very tedious task, if we change game/pickups info and forget to update cache it may not propagate to the entire cache, keep in mind if you are implementing

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

Feel free to change style or whatever

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

Erm I have not yet understood the complete concept of having a cache. I think its irrelevant though if we're accessing everything through the Client.

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

The cache is for storing mutable data like active games, once the bot restarts all that data will be dropped

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

to store in database we can call the deserialize function in pickups

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

What exactly do pickups and pickupsCount objects store in the cache?

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

pickups store game info pickupsCount stores the id for the channel, since all match ids in a channel must be unique

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

There is probably a better way to implement counting

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

Ehm I am finding it difficult to relate the names with the function.

So pickups stores instances of Pickups instances and pickupsCount stores the number of active Games in a pickups channel both mapped with their channel names.

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

Aight I'll try to get into this more tomorrow. Gotta sleep right now.

from pugbot.

PsiAphex avatar PsiAphex commented on September 2, 2024

Right see ya! Pickups stores Objects mapped by channel id, Which have arrays of Pickups instances, pickupsCount simply stores an Object mapped by channel IDs with an integer 'count' which is incremented each time a new Game is made, this count also serves as the unique ID of each Game/Match

from pugbot.

kevalpithadiya avatar kevalpithadiya commented on September 2, 2024

Pero

from pugbot.

Related Issues (17)

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.