mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Perf: enable undici cache store's loose mode
This commit is contained in:
parent
1211557888
commit
cc868a93a8
@ -118,6 +118,7 @@ setGlobalDispatcher(agent.compose(
|
|||||||
}),
|
}),
|
||||||
interceptors.cache({
|
interceptors.cache({
|
||||||
store: new BetterSqlite3CacheStore({
|
store: new BetterSqlite3CacheStore({
|
||||||
|
loose: true,
|
||||||
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
||||||
maxEntrySize: 1024 * 1024 * 100 // 100 MiB
|
maxEntrySize: 1024 * 1024 * 100 // 100 MiB
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
"tldts": "^6.1.85",
|
"tldts": "^6.1.85",
|
||||||
"tldts-experimental": "^6.1.85",
|
"tldts-experimental": "^6.1.85",
|
||||||
"undici": "^7.7.0",
|
"undici": "^7.7.0",
|
||||||
"undici-cache-store-better-sqlite3": "^0.1.1",
|
"undici-cache-store-better-sqlite3": "^0.1.2",
|
||||||
"whoiser": "^1.18.0",
|
"whoiser": "^1.18.0",
|
||||||
"why-is-node-running": "^3.2.2",
|
"why-is-node-running": "^3.2.2",
|
||||||
"worktank": "^2.7.3",
|
"worktank": "^2.7.3",
|
||||||
|
|||||||
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@ -77,8 +77,8 @@ importers:
|
|||||||
specifier: ^7.7.0
|
specifier: ^7.7.0
|
||||||
version: 7.7.0
|
version: 7.7.0
|
||||||
undici-cache-store-better-sqlite3:
|
undici-cache-store-better-sqlite3:
|
||||||
specifier: ^0.1.1
|
specifier: ^0.1.2
|
||||||
version: 0.1.1(undici@7.7.0)
|
version: 0.1.2(undici@7.7.0)
|
||||||
whoiser:
|
whoiser:
|
||||||
specifier: ^1.18.0
|
specifier: ^1.18.0
|
||||||
version: 1.18.0(patch_hash=01fa406613b6f7b55ad41a6e49450f5a6b1b198b837c4f3fe11edc48c779189f)
|
version: 1.18.0(patch_hash=01fa406613b6f7b55ad41a6e49450f5a6b1b198b837c4f3fe11edc48c779189f)
|
||||||
@ -1716,8 +1716,8 @@ packages:
|
|||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
undici-cache-store-better-sqlite3@0.1.1:
|
undici-cache-store-better-sqlite3@0.1.2:
|
||||||
resolution: {integrity: sha512-F/PxGx+QY3oScnFQ/YGbN7AYtqKLTzps0izFi8LddDaobso3SYXyQORuPcnUd2JbqpdxmLLkvS2zSvG6VPPMpw==}
|
resolution: {integrity: sha512-iUk+0I0W0bVPtm7p1bzzAAklLidKSrcX++HqSvmTTNwv2uWpI6DwpvSkcdm2T7GCENEUNHARpwyJdC2NBGiOXw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
undici: '>=7.0.0'
|
undici: '>=7.0.0'
|
||||||
|
|
||||||
@ -3430,9 +3430,10 @@ snapshots:
|
|||||||
|
|
||||||
typescript@5.8.2: {}
|
typescript@5.8.2: {}
|
||||||
|
|
||||||
undici-cache-store-better-sqlite3@0.1.1(undici@7.7.0):
|
undici-cache-store-better-sqlite3@0.1.2(undici@7.7.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
better-sqlite3: 11.9.1
|
better-sqlite3: 11.9.1
|
||||||
|
foxts: 3.0.1
|
||||||
undici: 7.7.0
|
undici: 7.7.0
|
||||||
|
|
||||||
undici-types@6.20.0: {}
|
undici-types@6.20.0: {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user