)]}'
{
  "commit": "75bf269d129f33db0ec2531bd23d493479b04dc9",
  "tree": "8ee032323423548e085f10d96768fe7fa2a9e6ca",
  "parents": [
    "7cbe4f626e52d3640b44855edb132d6d48288520"
  ],
  "author": {
    "name": "QUICHE team",
    "email": "quiche-dev@google.com",
    "time": "Tue Nov 24 12:51:53 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Nov 24 12:54:18 2026 -0800"
  },
  "message": "Vectorize HeaderValidator::IsValidHeaderValue with branch-free loops.\n\n`HeaderValidator::IsValidHeaderValue` checks each byte with a 256-byte lookup table and early exit, preventing auto-vectorization and limiting throughput to ~1.2 GB/s on every HTTP/2 header value (and on Envoy HTTP/1 header values via `HeaderUtility::headerValueIsValid`).\n\nReplace the table lookup with branch-free bitwise checks for both `ObsTextOption::kAllow` and `ObsTextOption::kDisallow`. XORing each byte with 0x16 maps HTAB (0x09) to 0x1f and every other control character below 0x1f, while preserving the upper three bits for all bytes ≥ 0x20. Keeping the boolean accumulator local to each branch lets LLVM recognize both loops as vector reductions (width 16, interleave 4) instead of falling back to scalar unrolling. Validation semantics remain identical for all 256 byte values.\n\nTested:\n  `header_validator_benchmark` (opt, static): `BM_ValidateSingleHeaderForRequests` 484ns → 241ns (2.01×), `BM_ValidateSingleHeaderForResponses` 658ns → 298ns (2.21×), `BM_IsValidHeaderValueAllowObsText` 16B to 4kB 3.0× to 22.0× (up to 27.9 GB/s), `BM_IsValidHeaderValueDisallowObsText` 16B to 4kB 3.0× to 19.9× (up to 24.9 GB/s). Exhaustive 256-byte tests and fuzz tests pass under default and dbg+asan builds.\nPiperOrigin-RevId: 1029273412\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d7b68739b153ad1b2471d4db0aac9d12386c3dcb",
      "old_mode": 33188,
      "old_path": "quiche/http2/adapter/header_validator.cc",
      "new_id": "2fd44ab03429f4bb7355e4dd8f727daa7911c5ef",
      "new_mode": 33188,
      "new_path": "quiche/http2/adapter/header_validator.cc"
    },
    {
      "type": "modify",
      "old_id": "d75e1e883d20b9a3c32eb55b7aa37a3cb973fd3b",
      "old_mode": 33188,
      "old_path": "quiche/http2/adapter/header_validator.h",
      "new_id": "fdc7088d390bdb2d1567649db4520e9e9edd84fe",
      "new_mode": 33188,
      "new_path": "quiche/http2/adapter/header_validator.h"
    },
    {
      "type": "modify",
      "old_id": "26ea5611d3d1e49d2d7f3dccc67931c5b66c9a17",
      "old_mode": 33188,
      "old_path": "quiche/http2/adapter/header_validator_test.cc",
      "new_id": "cb0ad56bd309e2c48eab9a2fe522f28cbdf8210e",
      "new_mode": 33188,
      "new_path": "quiche/http2/adapter/header_validator_test.cc"
    }
  ]
}
