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

Improve copy of map fields. #19720

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Improve copy of map fields. #19720

merged 1 commit into from
Dec 23, 2024

Conversation

copybara-service[bot]
Copy link

Improve copy of map fields.

On copy construct/assign we can:

  • guarantee there is enough space for all elements. This avoids rehashing.
  • guarantee all elements are unique. This avoids lookups.

@copybara-service copybara-service bot force-pushed the test_703489954 branch 3 times, most recently from 9cf97a2 to 5d33a24 Compare December 23, 2024 14:45
On copy construct/assign we can:
 - guarantee there is enough space for all elements. This avoids rehashing.
 - guarantee all elements are unique. This avoids lookups.

PiperOrigin-RevId: 709057139
@copybara-service copybara-service bot merged commit 34a397b into main Dec 23, 2024
1 check passed
@copybara-service copybara-service bot deleted the test_703489954 branch December 23, 2024 15:40
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.

None yet

1 participant