micro--go-micro
3480874c28
govulncheck / govulncheck (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
When caller and callee run in the same process, a unary Call pays the full network tax — pool.Get, dial, codec-over-socket, and the transport pump — even though the handler table is right there. This adds an opt-in fast-path that dispatches directly. - internal/network: a neutral registry (transport.Message in/out) so client and server wire up without importing each other. A running server registers a dispatcher under its name on Start, deregisters on Stop. - server: localDispatch serves a request in-process through the same router (identical wrappers/codecs/error mapping) over an in-memory socket — no dial, no pipe, no gob. - client: LocalDispatch() opt-in. In call(), a unary request whose body and response are raw frames (codec/bytes.Frame — the agent/MCP/flow shape) dispatches locally; everything else falls back to the network path unchanged. Correctness test proves the fast-path returns byte-identical replies to the network path; benchmark shows ~545µs -> ~28µs (~20x) and ~3.6x fewer allocations. Off by default. Covers #4817 (path b); the zero-copy typed path remains a follow-up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CmdEY7pYmV5zzwCjNJ4ykL
Internal related things