Skip to content

Commit

Permalink
iterating on this further, now doing features without perf impact
Browse files Browse the repository at this point in the history
Experimented with a few ways to only take the perf hit when
dispose/ttl/size are actually used, and still go fast when they're not.
This seems to work well.

Instead of separate classes for stack and pointer list, it's all just in
the one main LRUCache class.  Then no-op functions are swapped out for
their slower counterparts if features are opted into.
  • Loading branch information
isaacs committed Jan 30, 2022
1 parent e6c6e2b commit 0fabf76
Show file tree
Hide file tree
Showing 13 changed files with 593 additions and 1,065 deletions.
340 changes: 172 additions & 168 deletions README.md

Large diffs are not rendered by default.

99 changes: 0 additions & 99 deletions address-list.js

This file was deleted.

44 changes: 0 additions & 44 deletions address-stack.js

This file was deleted.

0 comments on commit 0fabf76

Please sign in to comment.