Skip to content

Comments

Change a few functions that take const {ByteArray, string}& to take ByteSpan.#1986

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
cl/869731297
Open

Change a few functions that take const {ByteArray, string}& to take ByteSpan.#1986
copybara-service[bot] wants to merge 1 commit intomainfrom
cl/869731297

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Feb 13, 2026

Change a few functions that take const {ByteArray, string}& to take ByteSpan.

This is to avoid copying the underlying data when converting data types for those functions.
E.g. there will be no need to copy data from a vector of Mutant to execute them.
Another example is that RemoteFileAppend(std::string) used to copy the data to a ByteArray, but not needed after.

Also changes dependent functions that take const vector<{ByteArray,string}>& to take span, and const vector& -> span following the same spirit.

@copybara-service copybara-service bot changed the title Internal change. Change functions of const vector<{ByteArray,string}>& to const vector<ByteSpan>&. Feb 13, 2026
@copybara-service copybara-service bot force-pushed the cl/869731297 branch 4 times, most recently from b3ebeb3 to dff758e Compare February 23, 2026 19:26
…yteSpan.

This is to avoid copying the underlying data when converting data types for those functions.
E.g. there will be no need to copy data from a vector of `Mutant` to execute them.
Another example is that RemoteFileAppend(std::string) used to copy the data to a ByteArray, but not needed after.

Also changes dependent functions that take const vector<{ByteArray,string}>& to take span<const ByteSpan>, and const vector<MutateInputRef>& -> span<const MutateInputRef> following the same spirit.

PiperOrigin-RevId: 869731297
@copybara-service copybara-service bot changed the title Change functions of const vector<{ByteArray,string}>& to const vector<ByteSpan>&. Change a few functions that take const {ByteArray, string}& to take ByteSpan. Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant