Comparing version 0.0.41 to 0.0.42
@@ -1,2 +0,2 @@ | ||
/*! dw-cache v0.0.41 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! dw-cache v0.0.42 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -457,3 +457,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
if (this.misses >= LRU.length) { | ||
LRU.head = LRU.length & 1 ? LRU.head.next.next : LRU.head.next.next.next; | ||
LRU.head = LRU.head.next; | ||
} | ||
@@ -460,0 +460,0 @@ |
{ | ||
"name": "dw-cache", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Dual window cache adaptively coordinates the ratio of LRU to LFU using the two sliding windows.", | ||
@@ -53,3 +53,3 @@ "private": false, | ||
"npm-check-updates": "^16.0.1", | ||
"spica": "0.0.582", | ||
"spica": "0.0.583", | ||
"ts-loader": "^9.3.1", | ||
@@ -56,0 +56,0 @@ "typescript": "4.7.4", |
@@ -79,4 +79,4 @@ # Dual Window Cache | ||
LRU hit rate 0% | ||
DWC hit rate 3.8% | ||
DWC - LRU hit rate delta 3.8% | ||
DWC hit rate 9.6% | ||
DWC - LRU hit rate delta 9.6% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -86,4 +86,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 11.2% | ||
DWC - LRU hit rate delta 11.2% | ||
DWC hit rate 23.8% | ||
DWC - LRU hit rate delta 23.8% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -93,4 +93,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 23.5% | ||
DWC - LRU hit rate delta 23.5% | ||
DWC hit rate 47.5% | ||
DWC - LRU hit rate delta 47.5% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -100,4 +100,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 54.5% | ||
DWC - LRU hit rate delta 54.5% | ||
DWC hit rate 70.9% | ||
DWC - LRU hit rate delta 70.9% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -107,4 +107,4 @@ | ||
LRU hit rate 0% | ||
DWC hit rate 95.3% | ||
DWC - LRU hit rate delta 95.3% | ||
DWC hit rate 95.1% | ||
DWC - LRU hit rate delta 95.1% | ||
DWC / LRU hit rate ratio Infinity | ||
@@ -111,0 +111,0 @@ |
74202