GithubHelp home page GithubHelp logo

go-meetup's People

Contributors

encryptio avatar

Watchers

 avatar  avatar

go-meetup's Issues

entry pointers should be reused

entry values can have their memory reused once they are not in use by any Get and are not in the tree (have been evicted or expired.)

Add API for validating cache entries before returning them

This is needed for fully linearizable caches; the idea being that you can cache data, but do a less expensive validation step at each get to make sure the data is up to date. Once you know that, you can either re-get it from the backend or return it as-is.

Concurrency limiter is unfair

The concurrency limiter chooses the next request to run psuedorandomly, due to the use of a channel write to implement concurrency limiting.

This behavior can stall individual reads for an arbitrary amount of time, adding a large variation in latency for requests.

Instead of writing to a full channel, something with fairer semantics should be implemented; for example, a deque.

Eviction should remove expired values instead of leaving them around

Currently, eviction in (*Cache).fill iterates over all entries and removes ones that have not been recently used (since the last eviction pass hit those pairs.)

If fill checked for expired values as it iterated and removed those, regardless of whether they had been recently used or not, then it would need the same or fewer iterations to free space for values, only remove values which cannot be used anyway, and thus make better use of the cache space.

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.