Giter Club home page Giter Club logo

Comments (3)

tatsuya6502 avatar tatsuya6502 commented on June 29, 2024

Unlike crossbeam-epoch, seize provides the followings:

  1. Configurable batch_size: Collector::batch_size
    • This controls the tradeoff between throughput and memory efficiency.
    • Maybe moka cache should allow user to change this value when creating an instance of cache.
  2. Protection against stalled threads: Collector::epoch_frequency
    • This ensures evicted cache entries to be eventually dropped.
  3. No global collector:
    • Each moka cache instance will have a dedicated seize collector.
    • This ensures all cached entries to be dropped when the cache instance is dropped.

from moka.

tatsuya6502 avatar tatsuya6502 commented on June 29, 2024

I am doing some experiments in a separate repository.

from moka.

tatsuya6502 avatar tatsuya6502 commented on June 29, 2024

Memo:

Ideally, I want a concurrent memory reclamation library to provide the followings:

  1. Give us a control whether this differed destruction request should be buffered in a thread local storage or not.
    • We want some of them not to be buffered, while others to be buffered.
  2. Provide an API to trigger a GC.
  3. When a GC runs, pull differed destruction requests from the local buffers of all registered threads,
    • instead of letting each threads to push them to the global queue.

from moka.

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.