mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* perf: avoid rescanning partial Windows desktop responses * fix: own the retained serve-channel tail and pin the no-newline invariant - Copy the retained partial line via ownRetainedString after each drain so a 13+ char tail no longer pins the whole drained response as a V8 SlicedString (measured 23 MB -> 22 KB for 32 pending tails behind 1 Mi lines); regression test with --expose-gc. - Add a test asserting the retained buffer never contains a newline after a drain, which the chunk-only fast path depends on. - Locate the first delimiter with decoded.indexOf offset by the retained length instead of rescanning the whole accumulated buffer; test pins that no indexOf runs over more than the new chunk. --------- Co-authored-by: Orca Worker <orca-worker@localhost> Co-authored-by: Neil <neil@stably.ai>