riegeli: Outline cold callback paths and mask varints directly in TransposeDecoder::Decode TransposeDecoder::Decode spends significant fleet CPU in its 96-way state machine dispatch loop. Previously, VarintCallback read into a temporary stack buffer (char unmasked[data_length]) before masking into the destination BackwardWriter, and ~70 macro-expanded callback specializations inlined their cold buffer-refill (PushSlow/ReadSlow) and error-handling paths directly into Decode(). That inflated TransposeDecoder::Decode to 22.5 KB of machine code and caused heavy register spilling across the switch loop (149 reloads of a single spilled stack slot in Decode). Replace the recursive SFINAE MaskBuffer overloads (resolving the C++17 if constexpr TODO) so VarintCallback masks directly from Reader::cursor() into BackwardWriter::cursor() when both buffers have sufficient space available, and outline the cold buffer-boundary and status-failure paths of CopyTagCallback, VarintCallback, FixedCallback, FixedExistenceCallback, and StringCallback into five shared non-template static helpers. This shrinks TransposeDecoder::Decode by 35.1% (22,557 B to 14,641 B), reduces total binary .text by 5.6 KB, eliminates the stack temporary and register spills in the hot loop, and speeds up BM_Decode/10k by ~9-10%. PiperOrigin-RevId: 1021917063
Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers. It supports dense compression, fast decoding, seeking, detection and optional skipping of data corruption, filtering of proto message fields for even faster decoding, and parallel encoding.
See documentation.
Riegeli file format will only change in a backward compatible way (i.e. future readers will understand current files, but current readers might not understand files using future features).
Riegeli C++ API might change in incompatible ways.