Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-23 18:35:31 -07:00
committed by GitHub
co-authored by Orca
parent 6eb70d8370
commit aab112933e
1577 changed files with 15167 additions and 91655 deletions
-11
View File
@@ -1,11 +0,0 @@
export const RETAINED_STRING_CHUNK_LIMIT = 1_024
export function appendCompactedStringChunk(chunks: string[], value: string): void {
chunks.push(value)
if (chunks.length <= RETAINED_STRING_CHUNK_LIMIT) {
return
}
const compacted = chunks.join('')
chunks.length = 0
chunks.push(compacted)
}