fix: 调小 snapshots 的范围
This commit is contained in:
parent
0955a02348
commit
2c7cfcf566
|
|
@ -51,7 +51,9 @@ export type FileHistoryState = {
|
||||||
snapshotSequence: number
|
snapshotSequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
const MAX_SNAPSHOTS = 100
|
// Disabled: file checkpointing causes unbounded memory growth (100 snapshots × full file backups).
|
||||||
|
// See heap snapshot analysis — re-enable only after switching to incremental diffs.
|
||||||
|
const MAX_SNAPSHOTS = 20
|
||||||
export type DiffStats =
|
export type DiffStats =
|
||||||
| {
|
| {
|
||||||
filesChanged?: string[]
|
filesChanged?: string[]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user