Files
opencode2api/internal
sk-dev-ai 2dd89196fb perf: typed CloneMap deep copy without marshal round-trip
The old form marshaled and re-parsed on every call, which is both
slower and lossy: every number decoded as float64 regardless of what
the caller held. The typed clone preserves map, slice, scalar, and
json.Number values, returns nil for nil, and deep-copies nested maps
and slices so callers cannot alias the input.
2026-10-14 17:32:42 +05:30
..