)]}'
{
  "commit": "011c2d1a873cabddb3cd367c7bce35ba9e6522c0",
  "tree": "265fafb85dfe0249fc4a27f73a0267eedd67ad3f",
  "parents": [
    "9f0e716f10fa3c2961edd2e15bb0b65489efbb9a"
  ],
  "author": {
    "name": "Igor Saprykin",
    "email": "isaprykin@google.com",
    "time": "Wed Nov 11 18:18:10 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 10:21:14 2026 -0800"
  },
  "message": "Make absl::Cord::EndsWith compare in place instead of copying the Cord.\n\nToday, each EndsWith overload copies the Cord and calls RemovePrefix on the copy. On a 1 KB Cord, cord.EndsWith(\"\\n\") therefore takes and releases a reference to the Cord\u0027s buffer and allocates and frees a 32-byte node, all to read one byte.\n\nNow, EndsWith compares the suffix with the last chunk in place and, when the suffix spans several chunks, walks the Cord\u0027s tree backward. Threads that share a Cord no longer contend for its reference count, and no call allocates. Walking backward finds a mismatch near the end at once, whereas a multi-kilobyte suffix that differs only near its start now compares the matching tail chunks first.\n\nPiperOrigin-RevId: 1019663073\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d6727f41626c06f6854f478b1ddf90d1284ee2f",
      "old_mode": 33188,
      "old_path": "absl/strings/cord.cc",
      "new_id": "d376834c2380427b91be12c8d73b8a5d9454d875",
      "new_mode": 33188,
      "new_path": "absl/strings/cord.cc"
    },
    {
      "type": "modify",
      "old_id": "fb3b86e76e94c2675d5984c6161ca564e3a47f54",
      "old_mode": 33188,
      "old_path": "absl/strings/cord.h",
      "new_id": "480293aaaffc5640ad060b015d38db135ff1b514",
      "new_mode": 33188,
      "new_path": "absl/strings/cord.h"
    },
    {
      "type": "modify",
      "old_id": "aed23efb46175bb6803ee6753eef6833141fbf1d",
      "old_mode": 33188,
      "old_path": "absl/strings/cord_test.cc",
      "new_id": "835e723073e693b17ea3a44715a863be23d8b755",
      "new_mode": 33188,
      "new_path": "absl/strings/cord_test.cc"
    }
  ]
}
