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.

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: 850527211
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