Skip to content

Change functions of const vector<{ByteArray,string}>& to const vector<ByteSpan>&.#1986

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

Change functions of const vector<{ByteArray,string}>& to const vector<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 functions of const vector<{ByteArray,string}>& to const vector&.

Also change const {ByteArray,std::string}& -> ByteSpan for dependencies.

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.

…<ByteSpan>&.

Also change const {ByteArray,std::string}& -> ByteSpan for dependencies.

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.

PiperOrigin-RevId: 869731297
@copybara-service copybara-service bot changed the title Internal change. Change functions of const vector<{ByteArray,string}>& to const vector<ByteSpan>&. Feb 13, 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