New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dw-cache

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dw-cache - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

11

dist/dw-cache.js

@@ -1,2 +0,2 @@

/*! dw-cache v0.0.22 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! dw-cache v0.0.23 https://github.com/falsandtru/dw-cache | (c) 2021, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require = function () {

@@ -465,8 +465,11 @@ function r(e, n, t) {

const val = record.value;
const index = node.value;
index.clock = this.clock;
index.expiry = global_1.Infinity;
this.ensure(size, node);
const index = node.value;
index.clock = ++this.clockR;
index.expiry = expiry;
this.SIZE += size - index.size;
index.size = size;
record.value = value;
index.size = size;
index.expiry = expiry;
(_d = (_c = this.settings).disposer) === null || _d === void 0 ? void 0 : _d.call(_c, val, key);

@@ -473,0 +476,0 @@ return true;

{
"name": "dw-cache",
"version": "0.0.22",
"version": "0.0.23",
"description": "Dual window cache adaptively coordinates the ratio of LRU to LFU using the two sliding windows.",

@@ -54,3 +54,3 @@ "private": false,

"power-assert": "^1.6.1",
"spica": "0.0.504",
"spica": "0.0.505",
"tsify": "^5.0.4",

@@ -57,0 +57,0 @@ "typescript": "4.5.5",

@@ -21,4 +21,4 @@ # Dual Window Cache

'Cache even 100'
'LRU hit rate', 9.57
'DWC hit rate', 9.57
'LRU hit rate', 10.13
'DWC hit rate', 10.13
'DWC ratio', 0, 0

@@ -28,16 +28,16 @@ 'DWC / LRU hit rate ratio', '100%'

'Cache uneven 100'
'LRU hit rate', 18.98
'DWC hit rate', 37.27
'DWC ratio', 95, 95
'DWC / LRU hit rate ratio', '196%'
'LRU hit rate', 18.44
'DWC hit rate', 36.94
'DWC ratio', 95, 94
'DWC / LRU hit rate ratio', '200%'
'Cache uneven 100 transitive distribution'
'LRU hit rate', 18.07
'DWC hit rate', 35.74
'LRU hit rate', 19.2
'DWC hit rate', 37.55
'DWC ratio', 95, 95
'DWC / LRU hit rate ratio', '197%'
'DWC / LRU hit rate ratio', '195%'
'Cache uneven 100 transitive bias'
'LRU hit rate', 11.21
'DWC hit rate', 11.21
'LRU hit rate', 10.75
'DWC hit rate', 10.75
'DWC ratio', 0, 0

@@ -47,15 +47,15 @@ 'DWC / LRU hit rate ratio', '100%'

'Cache uneven 100 sequential'
'LRU hit rate', 14.14
'DWC hit rate', 38.24
'LRU hit rate', 14.39
'DWC hit rate', 38.34
'DWC ratio', 95, 95
'DWC / LRU hit rate ratio', '270%'
'DWC / LRU hit rate ratio', '266%'
'Cache uneven 100 adversarial'
'LRU hit rate', 41.78
'DWC hit rate', 49.59
'DWC ratio', 94, 93
'DWC / LRU hit rate ratio', '118%'
'LRU hit rate', 41.58
'DWC hit rate', 49.58
'DWC ratio', 92, 91
'DWC / LRU hit rate ratio', '119%'
```
https://github.com/falsandtru/spica/runs/4991878619
https://github.com/falsandtru/spica/runs/4997367975

@@ -88,3 +88,3 @@ ### Benchmark

https://github.com/falsandtru/spica/runs/4991888588
https://github.com/falsandtru/spica/runs/4997379775

@@ -91,0 +91,0 @@ ## API

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc