Skip to content

Simplify RelMemberType#33

Open
nyurik wants to merge 1 commit intob-r-u:mainfrom
nyurik:relenum
Open

Simplify RelMemberType#33
nyurik wants to merge 1 commit intob-r-u:mainfrom
nyurik:relenum

Conversation

@nyurik
Copy link
Copy Markdown
Contributor

@nyurik nyurik commented Jul 3, 2022

This makes the code a bit more performant by removing the wrapping RelMemberType as a separate enum. No point now with protobuf3 as it gets generated as is.

I had to modify the .proto file to make the casing consistent, but eventually I do hope the protobuf lib itself can do that on the fly.

See also stepancheg/rust-protobuf#639

This makes the code a bit more performant by removing the wrapping RelMemberType as a separate enum. No point now with protobuf3 as it gets generated as is.

I had to modify the .proto file to make the casing consistent, but eventually I do hope the protobuf lib itself can do that on the fly.
@b-r-u
Copy link
Copy Markdown
Owner

b-r-u commented Aug 21, 2022

Hey nyurik, sorry for taking so long to respond.

I would refrain from changing the *.proto files in a semantic way for now, as it would make it harder to track the upstream changes.
The performance cost seems minimal, but I would welcome the reduced complexity if your issue gets resolved in rust-protobuf.

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