oom(01): A1-shared-readers — reintroduce #10179 subset (#10294)

Files: 18 applied, 0 deleted (from 6eb70d8370)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-24 20:30:31 -07:00
committed by GitHub
co-authored by Orca
parent c468e3f8b8
commit c419aadb19
18 changed files with 1166 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
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)
}