Coder Social home page Coder Social logo

sieve-cache-cpp's Introduction

Sieve Cache in C++ (header only)

A SIEVE cache implementation for C++. Based on D implementation.

How to Use

or

  • Add in your CMakeLists.txt
include(FetchContent)
FetchContent_Declare(
    sieve
    GIT_REPOSITORY "https://github.com/kassane/sieve-cache-cpp.git"
    GIT_TAG main
)
set(BUILD_BENCH OFF)
set(BUILD_TESTS OFF)
FetchContent_GetProperties(sieve)
if(NOT sieve_POPULATED)
    FetchContent_Populate(sieve)
endif()
set(SIEVE_PATH "${sieve_SOURCE_DIR}/include")

add_executable(${PROJECT_NAME} "demo.cc")
target_include_directories(${PROJECT_NAME} PRIVATE ${SIEVE_PATH})
$ cmake -B build
$ cmake --build build
# Run benchmark sample (if enabled)
$ cmake --build build --target bench
# Run unittest  (if enabled)
$ cmake --build build --target unittest

LICENSE

See: LICENSE

sieve-cache-cpp's People

Contributors

kassane avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

sieve-cache-cpp's Issues

Not implemented correctly.

This doesn't implement SIEVE correctly.

Specifically, I see no indication that...

  • a record is made when a node has been visited, the core mechanism used in cache eviction.
  • cache eviction ever happens

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.