Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use string concatenation instead of String.format. #7644

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Use string concatenation instead of String.format.

This appears to cut ~10% off the runtime of our internal suite for common.collect.

RELNOTES=n/a

@jbduncan
Copy link
Contributor

jbduncan commented Feb 3, 2025

This appears to cut ~10% off the runtime of our internal suite for common.collect.

Wow, that's really significant for such a small change. Well done to whoever caught it! 👏

@cpovirk
Copy link
Member

cpovirk commented Feb 3, 2025

Thanks, I also had a bit of a "Why did I not profile this a decade ago?" reaction :) But I suppose that plenty of us have had the opportunity, and finally I did it!

This appears to cut ~10% off the runtime of our internal suite for `common.collect`.

RELNOTES=n/a
PiperOrigin-RevId: 722792128
@copybara-service copybara-service bot merged commit f5fa4ea into master Feb 3, 2025
@copybara-service copybara-service bot deleted the test_722774852 branch February 3, 2025 22:13
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.

2 participants