• Stars
    star
    219
  • Rank 181,133 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ™ˆ An Adaptive Replacement Cache (ARC) written in Go.

Build Status

NEW Looking for an ARC in Javascript? - alexanderGugel/arc-js

arc

An Adaptive Replacement Cache (ARC) written in Go.

GoDoc

This project implements "ARC", a self-tuning, low overhead replacement cache. The goal of this project is to expose an interface compareable to common LRU cache management systems. ARC uses a learning rule to adaptively and continually revise its assumptions about the workload in order to adjust the internal LRU and LFU cache sizes.

This implementation is based on Nimrod Megiddo and Dharmendra S. Modha's "ARC: A SELF-TUNING, LOW OVERHEAD REPLACEMENT CACHE", while definitely useable and thread safe, this is still an experiment and shouldn't be considered production-ready.

<------- cache size c ------>
+-----------------+----------
| LFU             | LRU     |
+-----------------+----------
                  ^
                  |
                  p (dynamically adjusted by learning rule)

B1 [...]
B2 [...]

The cache is implemented using two internal caching systems L1 and L2. The cache size c defines the maximum number of entries stored (excluding ghost entries). Ghost entries are being stored in two "ghost registries" B1 and B1. Ghost entries no longer have a value associated with them.

Ghost entries are being used in order to keep track of expelled pages. They no longer have a value associated with them, but can be promoted into the internal LRU cache.

Frequently requested pages are being promoted into the LFU.

More Repositories

1

ied

๐Ÿ“ฆ Like npm, but faster - an alternative package manager for Node
JavaScript
1,989
star
2

wsd

๐Ÿ‘Š cURL for WebSocket Servers
Go
410
star
3

papier

๐Ÿ“Ž Just another CSS framework
HTML
271
star
4

jdi

๐Ÿ“˜ A documentation generator for literate JavaScript
JavaScript
98
star
5

follow-me

๐Ÿ’€ [UNMAINTAINED] A quick utility script that follows all members of a GitHub organization.
JavaScript
58
star
6

validate-asm

๐Ÿ’€ [MERGED UPSTREAM] Like JSLint, but for asm.js
JavaScript
36
star
7

taker

๐Ÿ‘ท simple, modular functions for working with asynchronous Golang code
Go
31
star
8

bubble

Documenting The 2016 Tech Bubble
29
star
9

pragmatic-testing

๐Ÿ“– A Pragmatic Guide on How to Test JavaScript Modules and Applications
29
star
10

github-insights

An interactive graph of all the people you (or anyone else) is following.
JavaScript
26
star
11

micro-events

A very, very simple event emitter implementation.
JavaScript
21
star
12

nerva

๐Ÿ“ฆ an alternative npm registry written in Go
Go
21
star
13

spin

Elegant, emoji-based loading spinners to make your Haskell CLI applications more beautiful.
Haskell
19
star
14

generator-webgl

Getting started with WebGL
JavaScript
16
star
15

refreshify

watch mode on steroids for browserify builds (live-reload and desktop notifications)
JavaScript
13
star
16

tailcall

๐Ÿ’ฅ Eliminate tail recursive function calls
JavaScript
13
star
17

arc-js

๐Ÿ™‰ An Adaptive Replacement Cache (ARC) written in JavaScript.
JavaScript
11
star
18

pretty-lazy

Don't feel guilty for using custom tag names!
JavaScript
8
star
19

level-accounts

Opinionated, simple and pretty secure token-based authentication solution using LevelDB
JavaScript
8
star
20

mockmock

๐Ÿฅ Mocking library for minimalists
JavaScript
6
star
21

productivity

A /etc/hosts file that magically increases your productivity.
5
star
22

MoreMagnets

[DEPRECATED] = The Pirate Bay + Digg - piracy
JavaScript
4
star
23

cas

A file system based content-addressable storage written in Go.
Go
4
star
24

react-boilerplate

A simple boilerplate for prototyping web apps in React.
JavaScript
4
star
25

api-stuff

Simple REST APIs for Twitter, Vine and Instagram
JavaScript
4
star
26

object-pool-2

A constructor specific object pool implementation for asynchronous recycling of object allocations.
JavaScript
3
star
27

bane

Making the development of concurrent UDP based daemons less painful.
Go
3
star
28

resolve

Node's `require.resolve` algorithm implemented in Go.
Go
3
star
29

nate

๐Ÿ“ nate makes generating HTML fun.
Python
3
star
30

micro-hackathon-starter

A boilerplate for Node.JS web applications fine-tuned for Micro Hackathons.
CoffeeScript
3
star
31

Odin

Odin is a foolproof multi-room chat application written in Node.js.
CSS
3
star
32

neovim-config

My neovim config.
Vim Script
2
star
33

json-ml

A simple JSON Markup Language (JsonML) implementation.
JavaScript
2
star
34

honigtopf

A honeypot for the BitTorrent Mainline DHT network.
JavaScript
2
star
35

inlineify

Inline code from external (source) files.
JavaScript
2
star
36

famous-experiments

JavaScript
1
star
37

gr-a-ph

Graph-based programming for JavaScript [deprecated - was kind of a strange idea]
JavaScript
1
star
38

hmrc-exchange-rates

๐Ÿ’ท ๐Ÿ’ถ ๐Ÿ’ต Download monthly exchange rates from HMRC and generate corresponding CSV files.
Go
1
star
39

data-structures

JavaScript
1
star
40

underbar

JavaScript
1
star
41

webhooks-test

1
star
42

alexanderGugel.github.io

JavaScript
1
star
43

Interactive-Venue-Map

CSS
1
star
44

famous-flow-menu

JavaScript
1
star
45

acc

A more generic version of the after function that accumulates arguments (including errors) from previous invocations.
JavaScript
1
star
46

webgl-seed

WebGL seed as generated by https://github.com/alexanderGugel/generator-webgl
JavaScript
1
star
47

anti-social

JavaScript
1
star
48

kiss-angular-seed

promoting bad practices in software engineering
JavaScript
1
star
49

raf-core

Request Animation Frame as a beating heart.
JavaScript
1
star