Expand description
Zero-copy Protobuf encoder for Qdrant gRPC protocol.
This module implements direct wire format encoding without intermediate struct allocations. Key optimizations:
- Pre-computed field tag bytes
- Buffer reuse via BytesMut
- Direct memcpy for vectors (no per-element loop)
Functionsยง
- encode_
create_ collection_ proto - Encode CreateCollection request to protobuf wire format.
- encode_
delete_ collection_ proto - Encode DeleteCollection request.
- encode_
delete_ points_ proto - Encode a DeletePoints request.
- encode_
search_ proto - Encode a SearchPoints request directly to protobuf wire format.
- encode_
upsert_ proto - Encode an UpsertPoints request to protobuf wire format.
- encode_
varint - Encode a varint (variable-length integer) into the buffer. Uses 7 bits per byte, MSB indicates continuation.
- encode_
varint_ u64 - Encode a u64 varint.
- encode_
with_ payload_ true - Encode with_payload = true as a sub-message.