opencode/packages/codemode-rust/bench/src
kommander 7c0a0fc3af perf(codemode): compile tool schemas once and keep host calls off the copy path
Schema::validated compiles its document into a validator once, so checking a
value does no keyword lookups and builds a path only when it fails. A failed
host call is boxed, so a successful one stays small in the inbox; synchronous
tools share one context; a program compiles when it is made and borrows its
source; the run id is made on first use.

The benchmark tools now declare the reference's schemas, so tool fan-out
also validates each input and output, as the reference does.
2026-11-18 18:54:15 +01:00
..
main.rs perf(codemode): compile tool schemas once and keep host calls off the copy path 2026-11-18 18:54:15 +01:00