)]}'
{
  "commit": "6a8e26d0f79bf663852cd4d051fd6ec292f88934",
  "tree": "9c0c617fc8ba8f62e8c2119dcaae83f06ff8e7e5",
  "parents": [
    "535a1654e6870db2fb3739f64f1e84071fc187bd"
  ],
  "author": {
    "name": "ripere",
    "email": "ripere@google.com",
    "time": "Mon Nov 23 12:05:49 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 23 12:06:51 2026 -0800"
  },
  "message": "Avoid rescanning buffered data in chunked OHTTP and indeterminate-length BHTTP.\n\nThe logic buffers an incomplete chunk or section until the rest of it arrives. After each call the logic compared the buffer with the checkpoint to decide whether to copy it. When nothing was consumed, the checkpoint is the buffer itself, but the comparison still read every buffered byte. This leads to unnecessary repeated comparisons in cases of long incomplete chunks being fed in small slices at a time.\n\nThe comparison is changed to now look only at the address and size. When the address and size match, the checkpoint is the buffer itself, so the buffer holds the same bytes as before in every case.\n\nAlso adds google3-only benchmarks (excluded from the QUICHE export) that feed an incomplete chunk in 64-byte slices to the chunked OHTTP gateway and client and to both indeterminate-length BHTTP decoders. Time to buffer the chunk, before and after this change (`-c opt`):\n\n| Buffered | Before | After |\n|---|---|---|\n| 64 KiB | 0.33–0.58 ms | 0.035–0.039 ms |\n| 1 MiB | 66–71 ms | 0.55–0.60 ms |\n| 16 MiB | 18.7–18.9 s | 9.2–10.2 ms |\n\nPiperOrigin-RevId: 1028362606\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b4a6a88460a61abe0f81bc336ef610ef1d22db88",
      "old_mode": 33188,
      "old_path": "quiche/binary_http/binary_http_message.cc",
      "new_id": "fd336994f9f9d17df6a82e4ba01f39959d05337e",
      "new_mode": 33188,
      "new_path": "quiche/binary_http/binary_http_message.cc"
    },
    {
      "type": "modify",
      "old_id": "1c4a47ad6ce437ddd4a394fec23fa8949cb95417",
      "old_mode": 33188,
      "old_path": "quiche/oblivious_http/oblivious_http_client.h",
      "new_id": "39ce999111d214e060d70b9b0568ef3a25cc5c29",
      "new_mode": 33188,
      "new_path": "quiche/oblivious_http/oblivious_http_client.h"
    },
    {
      "type": "modify",
      "old_id": "1206ea062b9b7258a003e4e2ee49fdd2be8e7622",
      "old_mode": 33188,
      "old_path": "quiche/oblivious_http/oblivious_http_gateway.h",
      "new_id": "778499284c286f3bb1d8341074b2a701de4565e3",
      "new_mode": 33188,
      "new_path": "quiche/oblivious_http/oblivious_http_gateway.h"
    }
  ]
}
