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
@@ -1,17 +0,0 @@
import { describe, expect, it } from 'vitest'
import { appendCompactedStringChunk, RETAINED_STRING_CHUNK_LIMIT } from './string-chunk-compaction'
describe('appendCompactedStringChunk', () => {
it('preserves 100,000 fragments within the retained chunk limit', () => {
const chunks: string[] = []
let maxRetainedChunks = 0
for (let index = 0; index < 100_000; index += 1) {
appendCompactedStringChunk(chunks, String.fromCharCode(97 + (index % 26)))
maxRetainedChunks = Math.max(maxRetainedChunks, chunks.length)
}
expect(maxRetainedChunks).toBeLessThanOrEqual(RETAINED_STRING_CHUNK_LIMIT)
expect(chunks.join('')).toHaveLength(100_000)
})
})