)]}'
{
  "commit": "0342c03291413bf288b269d3889ff8ff0bb5dd2d",
  "tree": "20ed46fe013a0970fba7c77e18b8a467be973279",
  "parents": [
    "73873c7ba9dc3dc032782a027b761623c604b929"
  ],
  "author": {
    "name": "David Zbarsky",
    "email": "dzbarsky@gmail.com",
    "time": "Mon Nov 23 09:13:17 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 23 09:14:55 2026 -0800"
  },
  "message": "Reuse protobuf encoders for synthetic attribute hashes (#32683)\n\n`SyntheticAttributeHashCalculator` allocates a 4 KiB protobuf buffer for every rule. Keep one `CodedOutputStream` per thread and give it a fresh configured `Hasher` for each rule. Flush the encoder before returning the hash, discard it after a failed write, and use a separate encoder for nested hashes.\n\nIn a warmed `streamed_proto` query with synthetic hashes over 12,049 rules, JVM allocation fell from 212.2 MiB to 163.7 MiB with byte-identical output.\n\nCloses #32683\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/bazel/pull/32683 from dzbarsky:codex/reuse-query-attribute-hash-encoder 94b21fd19c2db3d84c230c7db39f3c67eda6ba93\nPiperOrigin-RevId: 1028232879\nChange-Id: I1e912f119247151ac65c3b9c0cf0153ce3834058\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "963409cdcef03082ed1520da98ed133cd1e805e7",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/query2/query/output/SyntheticAttributeHashCalculator.java",
      "new_id": "129b2bad0f27c5fefd53d232aef9256aeee5d951",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/query2/query/output/SyntheticAttributeHashCalculator.java"
    },
    {
      "type": "modify",
      "old_id": "b2cf1cb5ee1868684380b8a7e03fad7646d0717d",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/query2/query/output/SyntheticAttributeHashCalculatorTest.java",
      "new_id": "36626ef941a1c6dbe16e53e29e736e04231bb335",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/query2/query/output/SyntheticAttributeHashCalculatorTest.java"
    }
  ]
}
