@synnaxlabs/pluto 0.21.9 → 0.21.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LinePlot-KYwy1D7H.js → LinePlot-BeWCHNq-.js} +3 -2
- package/dist/LinePlot-BeWCHNq-.js.map +1 -0
- package/dist/{LinePlot-Bnb8Ufob.cjs → LinePlot-mjjFdNnj.cjs} +3 -2
- package/dist/LinePlot-mjjFdNnj.cjs.map +1 -0
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +2 -2
- package/dist/index.cjs +9 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/src/telem/client/cache/static.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/LinePlot-Bnb8Ufob.cjs.map +0 -1
- package/dist/LinePlot-KYwy1D7H.js.map +0 -1
|
@@ -1262,9 +1262,10 @@ class Static {
|
|
|
1262
1262
|
* @returns metrics about the garbage collection.
|
|
1263
1263
|
*/
|
|
1264
1264
|
gc() {
|
|
1265
|
+
const { staleEntryThreshold } = this.props;
|
|
1265
1266
|
const res = zeroCacheGCMetrics();
|
|
1266
1267
|
const newData = this.data.filter((s) => {
|
|
1267
|
-
const shouldKeep = s.data.refCount
|
|
1268
|
+
const shouldKeep = s.data.refCount > 0 || m.since(s.addedAt).lessThan(staleEntryThreshold);
|
|
1268
1269
|
if (!shouldKeep)
|
|
1269
1270
|
res.purgedBytes = res.purgedBytes.add(s.data.byteCapacity);
|
|
1270
1271
|
return shouldKeep;
|
|
@@ -14338,4 +14339,4 @@ export {
|
|
|
14338
14339
|
value as y,
|
|
14339
14340
|
canvas as z
|
|
14340
14341
|
};
|
|
14341
|
-
//# sourceMappingURL=LinePlot-
|
|
14342
|
+
//# sourceMappingURL=LinePlot-BeWCHNq-.js.map
|