mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
Descriptor preparation now selects an operation per field kind for reading and writing, so values no longer dispatch on their type. Messages install their defaults from prepared arrays, nested messages keep their layout in the reader instead of a lookup per occurrence, and packed writers are prepared once. Bytes are copied when read and unknown fields are added when an occurrence ends, so the final walk only runs to check required fields. The generator package gains a benchmark of ProtobufMessage.decode and encode against @bufbuild/protobuf on the same bytes, with a metrics fixture of packed numeric lists.