@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
|
@@ -1263,9 +1263,10 @@ class Static {
|
|
|
1263
1263
|
* @returns metrics about the garbage collection.
|
|
1264
1264
|
*/
|
|
1265
1265
|
gc() {
|
|
1266
|
+
const { staleEntryThreshold } = this.props;
|
|
1266
1267
|
const res = zeroCacheGCMetrics();
|
|
1267
1268
|
const newData = this.data.filter((s) => {
|
|
1268
|
-
const shouldKeep = s.data.refCount
|
|
1269
|
+
const shouldKeep = s.data.refCount > 0 || aggregator.m.since(s.addedAt).lessThan(staleEntryThreshold);
|
|
1269
1270
|
if (!shouldKeep)
|
|
1270
1271
|
res.purgedBytes = res.purgedBytes.add(s.data.byteCapacity);
|
|
1271
1272
|
return shouldKeep;
|
|
@@ -14334,4 +14335,4 @@ exports.withinBounds = withinBounds;
|
|
|
14334
14335
|
exports.withinSizeThreshold = withinSizeThreshold;
|
|
14335
14336
|
exports.xAxisStateZ = xAxisStateZ;
|
|
14336
14337
|
exports.yAxisStateZ = yAxisStateZ;
|
|
14337
|
-
//# sourceMappingURL=LinePlot-
|
|
14338
|
+
//# sourceMappingURL=LinePlot-mjjFdNnj.cjs.map
|