)]}'
{
  "commit": "2c2339a508aff0431def3ea0f94e15374a902e4f",
  "tree": "9f0ce1220522284424da104e588b0d35bda4557c",
  "parents": [
    "ad7c2338440c8820232fb0d2b96c4a665cd38292"
  ],
  "author": {
    "name": "Compression Team",
    "email": "noreply@google.com",
    "time": "Thu Oct 29 05:42:46 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Oct 30 08:38:17 2026 -0700"
  },
  "message": "Pass the chunk length to `NewReader()` when reading chunks.\n\nChunk reads create a child reader with `NewReader(offset)` and read the chunk\nwith `MaskedReader`. They now use `NewReader(offset, length_hint)` with the\nlength being read, so that `riegeli::GcsReader` sends one request for exactly\nthis range instead of an open-ended request which is cancelled after the chunk\nis read. Sources which do not use the hint, e.g. `FileReader`, `FdReader`, and\n`StringReader`, read as before.\n\nWith `index_storage_option:offloaded`, each chunk offset lookup reads the\nfooter chunk with `DefaultChunkReader`. Its length, measured when the footer is\nread by `Initialize()`, is passed too, so these lookups no longer send an\nopen-ended request each which is cancelled before the footer padding and\npostscript are read.\n\nPiperOrigin-RevId: 1009621243\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1e0bcd700df6ccca59db81ab5a1853aa5ec3318c",
      "old_mode": 33188,
      "old_path": "riegeli/bytes/reader.cc",
      "new_id": "5f4e024d23be28b3f5208c761182e86755caf29c",
      "new_mode": 33188,
      "new_path": "riegeli/bytes/reader.cc"
    },
    {
      "type": "modify",
      "old_id": "e5561df6a4b6e581e6714c7395b910ad0af732a5",
      "old_mode": 33188,
      "old_path": "riegeli/bytes/reader.h",
      "new_id": "8d87d6e6fadeaaf2a024865d8aae68bacae3aa4f",
      "new_mode": 33188,
      "new_path": "riegeli/bytes/reader.h"
    },
    {
      "type": "modify",
      "old_id": "81b186632686b6e48b6cbd78ffdecac1cd892be9",
      "old_mode": 33188,
      "old_path": "riegeli/gcs/gcs_reader.cc",
      "new_id": "ac1a5df277ebd1488ddc3594502f16411567eb99",
      "new_mode": 33188,
      "new_path": "riegeli/gcs/gcs_reader.cc"
    },
    {
      "type": "modify",
      "old_id": "f4811b8120856e0b656e97950448a103824c0e13",
      "old_mode": 33188,
      "old_path": "riegeli/gcs/gcs_reader.h",
      "new_id": "fdffedaf50350f7e1ed9fea4c25d0f8583a33ee5",
      "new_mode": 33188,
      "new_path": "riegeli/gcs/gcs_reader.h"
    }
  ]
}
