Skip to content

Conversation

@copybara-service
Copy link

Optimize parsing packed repeated bool fields.

Check if each byte in the array is a valid representation for a bool,
i.e. 0 or 1. If so, skip varint parsing, and help the compiler with making
conversion to bool trivial.

@copybara-service copybara-service bot force-pushed the test_850527211 branch 3 times, most recently from fa613c7 to 946100e Compare January 7, 2026 06:20
Check if each byte in the array is a valid representation for a bool,
i.e. 0 or 1. If so, skip varint parsing, and help the compiler with making
conversion to bool trivial.

PiperOrigin-RevId: 853089336
@copybara-service copybara-service bot merged commit 9865428 into main Jan 7, 2026
@copybara-service copybara-service bot deleted the test_850527211 branch January 7, 2026 06:46
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