)]}'
{
  "commit": "7656087599fa0d77059233eb5db59470ac2be40d",
  "tree": "f8eff4eb4b20f9b71523de7240622a4f4a724b8d",
  "parents": [
    "346f9c313fbd1332c24bee60eff8d8a36968664a"
  ],
  "author": {
    "name": "Protobuf Team Bot",
    "email": "protobuf-github-bot@google.com",
    "time": "Fri Nov 20 12:00:35 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 12:04:32 2026 -0800"
  },
  "message": "[ObjC] Compute fixed-width POD field and extension sizes in O(1).\n\nFor the 7 fixed-width scalar types (`bool`, `fixed32`, `sfixed32`, `float`, `fixed64`, `sfixed64`, and `double`), wire byte size is constant (`1`, `4`, or `8` bytes) regardless of value. However, `-[GPBMessage serializedSize]` loaded single-field ivars and iterated over repeated `GPB*Array` elements via `enumerateValuesWithBlock:` in `O(N)` time, and `GPBExtensionInternals` unboxed `NSNumber` extension values via `objc_msgSend` across two duplicate 18-case switches only to discard the unboxed values.\n\nCompute fixed-width single and repeated field sizes directly from `count * {1, 4, 8}` and fold `ComputeSerializedSizeIncludingTagOfObject` onto `ComputePBSerializedSizeNoTagOfObject` without unboxing fixed-width `NSNumber`s, turning repeated fixed-width sizing from `O(N)` to `O(1)` and shrinking ARM64 `-Os` `__TEXT,__text` by ~1.9 KB (`-1,932 B`).\n\nPiperOrigin-RevId: 1026649836\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f9b05c68bf49c7eec11d3f5e97f9f247249f15ed",
      "old_mode": 33188,
      "old_path": "objectivec/GPBExtensionInternals.m",
      "new_id": "edcdc95864db253229684c5683814d500331d9ef",
      "new_mode": 33188,
      "new_path": "objectivec/GPBExtensionInternals.m"
    },
    {
      "type": "modify",
      "old_id": "4bc42e429004b03a9ebd87921e9e25d88a3f1e80",
      "old_mode": 33188,
      "old_path": "objectivec/GPBMessage.m",
      "new_id": "d6922a6cc9df9c4089610ccbf1df694a824417a6",
      "new_mode": 33188,
      "new_path": "objectivec/GPBMessage.m"
    }
  ]
}
