Update packages/trace-viewer/src/snapshotRenderer.ts
Co-authored-by: Max Schmitt <max@schmitt.mx> Signed-off-by: Simon Knott <info@simonknott.de>
This commit is contained in:
parent
4d124dfb46
commit
c62fb17422
|
|
@ -27,7 +27,7 @@ function isSubtreeReferenceSnapshot(n: NodeSnapshot): n is SubtreeReferenceSnaps
|
|||
|
||||
let cacheSize = 0;
|
||||
const cache = new Map<SnapshotRenderer, string>();
|
||||
const CACHE_SIZE = 300000000; // 300mb
|
||||
const CACHE_SIZE = 300_000_000; // 300mb
|
||||
|
||||
function lruCache(key: SnapshotRenderer, compute: () => string): string {
|
||||
if (cache.has(key)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue