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

Implement an option to store repeated fields in Vec #280

Closed
stepancheg opened this issue Apr 1, 2018 · 1 comment
Closed

Implement an option to store repeated fields in Vec #280

stepancheg opened this issue Apr 1, 2018 · 1 comment

Comments

@stepancheg
Copy link
Owner

Currently repeated fields of message type are generated as RepeatedField<Message>.

That helps with high performance code: allocated memory for one message can be reused for next message, but practically people rarely reuse messages.

Rust-protobuf needs an option to generate repeated fields as Vec<Message>, which could be turned on by default later.

@stepancheg
Copy link
Owner Author

Implemented in 87c156d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant