Giter Club home page Giter Club logo

cloudxaas / gocache Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 3.0 283 KB

One of The Fastest Zero Alloc LRU Cache for Golang (Go). Maximizes memory use, no garbage collection issues. Use memory size limit instead of specifying item capacity. Batch eviction feature for faster processing

Home Page: https://cloudxaas.com

License: MIT License

Go 99.85% HTML 0.15%
go golang cache cache-service cache-storage lru lru-algorithm lru-cache lru-caches lru-implementation lrucache

gocache's Introduction

Super Fast LRU Cache for Golang

" Let's Accelerate LRU " - Accelru

One of The Fastest Zero Allocation LRU Cache for Golang

(for key, value pairs in []byte)

Accelru (cxlrubytes)

Supposingly having the best cache hit ratio (in zero allocation class) with "optimum" memory usage.

Please contribute to make it better. Feedback / comments / suggestions on improvement appreciated (stars too).

Check lru/bytes for details for key, value in []byte (tested).

Check version X for extreme speed, lower memory footprint at the expense of maybe a bit lower hit ratio (depending on what hash function is used).

lrux/bytes for details for key, value in []byte (tested).

Check lru for Any type details (untested).

Motivation

Most current (year 2024) golang lru implementations are either not as fast as this, or needed capacity count of items as input parameter, this can result in "OOM" or not being able to fully utilize the memory capacity available.

cxlrubytes thus is designed for:

  1. High performance
  2. Zero allocation (so no garbage collection)
  3. Maximizing memory usage (but not being limited by item capacity)

Will do other input parameters in future but currently, converting everything to []byte and using this gives wonderful results.

google-site-verification: google4b244ca4683e045f.html

gocache's People

Contributors

kolinfluence avatar sprappcom avatar hiqsociety avatar

Stargazers

ringsaturn avatar ccoVeille avatar 3JoB SRA avatar jimyag avatar  avatar  avatar Artashes avatar  avatar Bruce Yang avatar  avatar banshan avatar Michael K avatar Dinesh Chander avatar

Watchers

ccoVeille avatar

gocache's Issues

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.