Skip to content

Optimize google::api::expr::Unparse by removing unnecessary map copying.#1798

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_839458063
Dec 3, 2025
Merged

Optimize google::api::expr::Unparse by removing unnecessary map copying.#1798
copybara-service[bot] merged 1 commit into
masterfrom
test_839458063

Conversation

@copybara-service
Copy link
Copy Markdown

Optimize google::api::expr::Unparse by removing unnecessary map copying.

auto var = FunctionReturningConstRef(); causes a copy while const auto& var = FunctionReturningConstRef(); does not cause any copies. Example: https://godbolt.org/z/37hETqc3q

@copybara-service copybara-service Bot force-pushed the test_839458063 branch 2 times, most recently from 6247c54 to 1e8cd68 Compare December 3, 2025 10:18
…ying.

`auto var = FunctionReturningConstRef();` causes a copy while `const auto& var = FunctionReturningConstRef();` does not cause any copies. Example: https://godbolt.org/z/37hETqc3q

PiperOrigin-RevId: 839669874
@copybara-service copybara-service Bot merged commit 4eef486 into master Dec 3, 2025
@copybara-service copybara-service Bot deleted the test_839458063 branch December 3, 2025 10:52
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