You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 32984e9
Browse filesBrowse the repository at this point in the historyBrowse files
committed
perf(server): usage history scans reuse one read buffer per transcript
A cold usage scan is CPU-bound on the server's main thread, and reading each
transcript through createReadStream allocated a fresh 256 KB buffer and ran the
Readable async iterator for every chunk. Plain transcripts now read with
handle.read into one buffer per file; the few bytes of a line that continue
past a chunk are copied before the next read. Compressed rollouts keep the
zstd stream.
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: GPT 6.1 Sol <[email protected]>
Co-authored-by: Grok 4.7 <[email protected]>
0 commit comments