Skip to content

Commit 684d866

Browse files
committed
perf: from lru-cache to lru-fast
1 parent 8a20c28 commit 684d866

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

classes/range.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ function buildMemoKeyFromOptions(options) {
221221

222222
module.exports = Range
223223

224-
const LRU = require('lru-cache')
225-
const cache = new LRU({ max: 1000 })
224+
const LRU = require('lru-fast').LRUCache
225+
const cache = new LRU(1000)
226226

227227
const parseOptions = require('../internal/parse-options')
228228
const Comparator = require('./comparator')

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"node": ">=10"
4949
},
5050
"dependencies": {
51-
"lru-cache": "^6.0.0"
51+
"lru-fast": "0.2.2"
5252
},
5353
"author": "GitHub Inc.",
5454
"templateOSS": {

0 commit comments

Comments
 (0)