Skip to content

Commit

Permalink
Change BlobFileReader::Read() param: Span<uint8_t>& ->
Browse files Browse the repository at this point in the history
`Span<const uint8_t>&`.

This will allow a more efficient implementation when reading from Riegeli.

PiperOrigin-RevId: 580301880
  • Loading branch information
QrczakMK authored and copybara-github committed Nov 7, 2023
1 parent f9399a9 commit a50ca29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/simple_fix_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ std::vector<std::string> ReadUniqueCentipedeBlobs(

// TODO(dougkwan): Parallelize this to speed up blob reading.
absl::Status status;
absl::Span<uint8_t> blob;
absl::Span<const uint8_t> blob;
while ((status = reader->Read(blob)).ok()) {
const std::string id = InstructionsToSnapshotId(
{reinterpret_cast<const char*>(blob.data()), blob.size()});
Expand Down

0 comments on commit a50ca29

Please sign in to comment.