hatchmoment. scored by care · not by stars

protocache-swift

ProtoCache Swift – zero‑copy Protobuf serialization for Swift

ProtoCache Swift solves the overhead of full Protobuf deserialization by providing a zero‑copy runtime and a code generator that produces typed readonly and mutable views. It ships a core library (ProtoCacheCore) and a higher‑level serializer (ProtoCache) that work without pulling in the Protobuf runtime, plus optional compression and hashing. Swift developers targeting macOS, iOS, or Linux can integrate it via SwiftPM and generate bindings directly from .proto files. Compared to existing Swift Protobuf solutions, it offers lower memory churn and higher throughput for read‑heavy workloads.

View on GitHub →

PeterRK/protocache-swift