There was an error while loading. Please reload this page.
1 parent e1525ab commit d56b66dCopy full SHA for d56b66d
1 file changed
lib/as-bs.ts
@@ -238,7 +238,7 @@ export namespace sc {
238
// @ts-ignore: decorators allowed
239
// @inline export const ENTRY_HITS = offsetof<sc.Entry>("hits");
240
241
- export const CACHE_SIZE = 4096;
+ export const CACHE_SIZE = isDefined(JSON_CACHE) ? 4096 : 0;
242
export const CACHE_MASK = CACHE_SIZE - 1;
243
244
export const ARENA_SIZE = 1 << 20;
@@ -299,4 +299,4 @@ export namespace sc {
299
300
arenaPtr += len;
301
}
302
-}
+}
0 commit comments