)]}'
{
  "commit": "31720c7ff978b399237e7fc580343894b4619672",
  "tree": "d5cce73791453201bad099089bcfd11016145c75",
  "parents": [
    "54b40506e54f51db7a92532502ce9cd5b4a6b838"
  ],
  "author": {
    "name": "Compression Team",
    "email": "copybara-servicebot@google.com",
    "time": "Sat Nov 14 15:36:15 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sat Nov 14 15:54:31 2026 -0800"
  },
  "message": "riegeli: Outline cold callback paths and mask varints directly in TransposeDecoder::Decode\n\nTransposeDecoder::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).\n\nReplace 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%.\n\nPiperOrigin-RevId: 1021917063\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f802f89f28a2d58071bb4406f7e79097f0150370",
      "old_mode": 33188,
      "old_path": "riegeli/chunk_encoding/transpose_decoder.cc",
      "new_id": "7c73d594ed326faa30999c32aca2ce9a27a3eed7",
      "new_mode": 33188,
      "new_path": "riegeli/chunk_encoding/transpose_decoder.cc"
    }
  ]
}
