Files
api/zap/doc.go
T
zeekay dd2f2c716e Add ZAP wire protocol transport for VM communication
- Add zap/ package with zero-copy binary wire protocol
- Support for VM client/server communication over ZAP
- Wire format: [4-byte length][1-byte message type][payload]
- Includes sender, transport, and VM implementations
2026-01-24 11:39:40 -08:00

18 lines
678 B
Go

// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Package zap provides Zero-Copy App Proto (ZAP) serialization for high-performance
// RPC communication. ZAP minimizes CPU overhead and memory allocations through:
//
// - Direct memory access for fixed-size fields
// - Length-prefixed variable data without copying
// - Buffer pooling to avoid allocations
// - Simple framing for TCP transport (no HTTP/2 overhead)
//
// Wire protocol:
//
// [4 bytes: message length][1 byte: message type][payload...]
//
// The message type allows multiplexing multiple RPC calls over a single connection.
package zap