Skip to content

Commit ab8999e

Browse files
committed
Merge branch 'main' of github.com:JairusSW/json-as
2 parents 0fdb779 + d56b66d commit ab8999e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/as-bs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export namespace sc {
238238
// @ts-ignore: decorators allowed
239239
// @inline export const ENTRY_HITS = offsetof<sc.Entry>("hits");
240240

241-
export const CACHE_SIZE = 4096;
241+
export const CACHE_SIZE = isDefined(JSON_CACHE) ? 4096 : 0;
242242
export const CACHE_MASK = CACHE_SIZE - 1;
243243

244244
export const ARENA_SIZE = 1 << 20;
@@ -299,4 +299,4 @@ export namespace sc {
299299

300300
arenaPtr += len;
301301
}
302-
}
302+
}

0 commit comments

Comments
 (0)