perf(antigravity): translate each upstream request once
Execute, executeClaudeNonStream and ExecuteStream all assign the validated original payload to the request and then translate both values. Since both translations saw the same bytes, every Antigravity request paid for a second full scan of the client payload. On a captured 24MB tool-history request that second pass cost roughly 0.9s of CPU and 651MB of allocations. Translate once when both inputs share a backing array and hand the caller an independent duplicate, because later stages edit the working copy in place. Payloads that genuinely differ still get two translations.
S
sususu committed
cf8c27fe90abf6d8116ebdb6e65686ecb4abdece
Parent: d5f6885
Committed by sususu98 <33882693+sususu98@users.noreply.github.com>
on 8/11/2026, 8:07:42 AM