mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-06 16:15:50 +08:00
Previously each dropped encrypted_content re-ran sjson.DeleteBytes on the whole body/array per item, causing O(n^2) work on inputs with many reasoning items. Now the array is walked once, editing only offending items in place and lazily building a replacement "input" array via strings.Builder. The builder stays nil (no allocation) when nothing needs sanitizing, and the array is spliced back with a single SetRawBytes call.